Tim Abbott
87d06268ca
toggle_reactions_popover: Support being passed no message ID.
...
This is intended to facilitate calling this function for the compose
picker, where there is no message yet.
2017-04-30 15:08:51 -07:00
Jack Zhang
3c257a19c0
emoji-picker: Extract generate_emoji_picker_content.
...
This is a pure refactor, with no functional changes.
2017-04-30 15:02:12 -07:00
Tim Abbott
66f927762b
emoji_picker: Extract compute_placement function.
...
Thanks to Jack Zhang for identifying this useful refactoring.
2017-04-30 14:41:54 -07:00
Jack Zhang
f8b3ce7d15
emoji: Move all emoji picker logic/events into emoji_picker module.
...
Added emoji_picker.js to static asset pipeline.
2017-04-30 14:13:36 -07:00
Alexander Trost
889547ff5e
configure-rabbitmq: Add support for RABBITMQ_NODE flag.
...
This can potentially be used by things like a Docker configuration
that runs RabbitMQ on another server.
2017-04-29 15:03:05 -07:00
Eeshan Garg
8ef18463d6
github_webhook: Use author's full name if username is not available.
...
In cases where the webhook payload doesn't have the username for the
author of a particular commit (this can happen if the author doesn't
have a GitHub account or the author's email is not associated with
their GitHub account), we now use the author's full name to format
messages.
2017-04-29 14:57:57 -07:00
Aditya Bansal
cab87fef2a
Refactor: Extract default-language-modal to be a partial.
...
We are doing this refactor for the sake of keeping our template
consistent with the indentation policy and maintaining its
readability at the same time.
2017-04-29 08:35:25 -07:00
fionabunny
78f2df5649
home.py: move initial_pointer as pointer to register_ret.
...
This is the last of the fields in page_params that could come from
register_ret but wasn't doing so.
2017-04-28 23:39:14 -07:00
fionabunny
d3e7e6542a
home.py: move user_profile full_name to register_ret.
...
Move the user_profile data section down into fetch_initial_state_data
so it entirely pulls from register_ret for #3853 .
2017-04-28 23:31:28 -07:00
fionabunny
d5421f25e1
home.py: move user_profile email to register_ret.
...
Move the user_profile data section down into fetch_initial_state_data so
it entirely pulls from register_ret for #3853
2017-04-28 23:27:34 -07:00
fionabunny
9daf9faa5c
home.py: move enter_sends to register_ret.
...
Move the user_profile data section down into fetch_initial_state_data so
it entirely pulls from register_ret for #3853
2017-04-28 23:26:28 -07:00
fionabunny
6f770c2465
home.py: move user_id to register_ret.
...
Move the user_profile data section down into fetch_initial_state_data so
it entirely pulls from register_ret for #3853
2017-04-28 23:26:28 -07:00
fionabunny
6159b8e21a
home.py: move is_admin to register_ret.
...
Move the user_profile data section down into fetch_initial_state_data so
it entirely pulls from register_ret for #3853
2017-04-28 23:26:27 -07:00
fionabunny
d92da7d193
home.py: move can_create_streams to register_ret.
...
Move the user_profile data section down into fetch_initial_state_data
so it entirely pulls from register_ret for #3853 .
This field requires some changes to the events race handling.
2017-04-28 23:23:21 -07:00
fionabunny
379a8afaae
home.py: move autoscroll_forever to register_ret.
...
Move the user_profile data section down into fetch_initial_state_data so
it entirely pulls from register_ret for #3853
2017-04-28 23:16:32 -07:00
fionabunny
22be291d96
home.py: move default_desktop_notifications to register_ret.
...
Move the user_profile data section down into fetch_initial_state_data so
it entirely pulls from register_ret for #3853
2017-04-28 23:16:32 -07:00
Tim Abbott
df8f4a837c
home: Get page_params.enable_desktop_notifications from register_ret.
2017-04-28 23:15:35 -07:00
Tim Abbott
c4eeb13353
account-settings: Always display the medium-size avatar.
2017-04-28 23:09:32 -07:00
fionabunny
4696819629
Restructure format of avatar events and push into register_ret.
...
This moves the avatar_ fields in page_params to come from
register_ret. Unlike many fields, changing this had a bit of
complexity, because the avatar update events didn't actually contain
some of the details required for moving these into register_ret to
work correctly without races.
We fix that as part of this change.
Modified significantly by tabbott.
2017-04-28 23:04:01 -07:00
Tim Abbott
c63466cae3
home: Get pm_content_in_desktop_notifications from register_ret.
2017-04-28 22:06:32 -07:00
Tim Abbott
2a16cc1d24
home: Get enable_stream_desktop_notifications from register_ret.
2017-04-28 22:01:46 -07:00
Tim Abbott
2a8a101fe2
home: Get page_params.enable_stream_sounds from register_ret.
2017-04-28 21:56:58 -07:00
Tim Abbott
30db811167
home: Get page_params.enable_sounds from register_ret.
2017-04-28 21:54:05 -07:00
Tim Abbott
a0ef1210eb
home: Get enable_offline_email_notifications from register_ret.
2017-04-28 21:51:41 -07:00
Tim Abbott
1141111b74
home: Get enable_online_push_notifications from register_ret.
2017-04-28 21:51:07 -07:00
Tim Abbott
68cdbdd478
home: Get enable_offline_push_notifications from register_ret.
2017-04-28 21:50:41 -07:00
Tim Abbott
ba384240b0
home: Get enable_digest_emails from register_ret.
2017-04-28 21:50:12 -07:00
fionabunny
83191cfadf
home.py: move timezone to register_ret.
...
Moving the user_profile data section down into fetch_initial_state_data
so it entirely pulls from register_ret in #3853
2017-04-28 21:40:37 -07:00
fionabunny
16a0327c33
home.py: move emojiset to register_ret.
...
Moving the user_profile data section down into fetch_initial_state_data
so it entirely pulls from register_ret for #3853
2017-04-28 21:40:36 -07:00
fionabunny
2bdb6a00a7
home.py: move emojiset_choices to register_ret.
...
Moving user_profile data to fetch_initial_state_data from #3853
2017-04-28 21:40:26 -07:00
fionabunny
78bcbc79d6
home.py: move people_list as realm_users to register_ret.
...
Simplify the page_params generation logic #3853
2017-04-28 21:33:33 -07:00
fionabunny
7db8c61aac
home.py: move event_queue_id as queue_id to register_ret.
...
Simplify the page_params generation logic #3853
2017-04-28 21:33:17 -07:00
Tim Abbott
27f07e6a99
activity: Remove page_params.presences after use.
...
This is just meant to avoid there being any confusion about whether
this field does anything after this point.
2017-04-28 21:31:19 -07:00
fionabunny
453fc06686
home.py: move initial_presences as presenses to register_ret.
...
Simplify the page_params generation logic #3853 .
2017-04-28 21:30:29 -07:00
fionabunny
84c4d67916
home.py: move bot_list as realm_bots to register_ret.
...
Simplify the page_params generation logic #3853
2017-04-28 21:24:44 -07:00
fionabunny
a7192f4334
home.py: move neversubbed_info as never_subscribed to register_ret.
...
Simplify the page_params generation logic #3853
2017-04-28 21:24:44 -07:00
fionabunny
5676eaab50
home.py: move unsubbed_info as unsubscribed to register_ret.
...
Simplify the page_params generation logic #3853
2017-04-28 21:24:43 -07:00
fionabunny
26d080cf64
home.py: rename subbed_info and move to register_ret.
2017-04-28 21:24:43 -07:00
fionabunny
b7c6d46bf9
home.py: move password_auth_enabled as realm_password_auth_enabled.
...
Part of #3853 .
2017-04-28 21:23:48 -07:00
fionabunny
635a05fe80
home.py: move name_changes_disabled as realm_name_changes_disabled.
...
This appears to have been partially completed prior. Part of #3853 .
2017-04-28 21:12:23 -07:00
fionabunny
70fe2eab60
home.py: move is_zephyr_mirror_realm as realm_is_zephyr_mirror_realm.
...
Part of #3853 .
2017-04-28 21:12:16 -07:00
fionabunny
935ddf3b17
home.py: move show_digest_email as realm_show_digest_email.
...
Part of #3853 .
2017-04-28 21:12:10 -07:00
fionabunny
64041e0da1
home.py: move mandatory_topics as realm_mandatory_topics to register_ret.
...
Part of #3853 .
2017-04-28 21:12:05 -07:00
fionabunny
79c989916d
home.py: move realm_presence_disabled to register_ret.
...
Part of #3853 .
2017-04-28 21:12:00 -07:00
fionabunny
6d2785c853
home.py: move domains as realm_domains to register_ret.
...
Part of #3853 .
2017-04-28 21:11:56 -07:00
Tim Abbott
4a67ba241e
realm_domains: Restructure library for getting realm domains.
...
* Remove duplicate list_of_domains_for_realm of get_realm_domains.
* Move get_realm_domains from actions.py.
2017-04-28 21:11:56 -07:00
fionabunny
504de6abc2
home.py: move realm_uri to register_ret.
...
Part of #3853 .
2017-04-28 21:11:50 -07:00
Steve Howell
6057c444e2
Extract _internal_prep_message().
...
The function internal_prep_message is kind of awkward to
call, so I'm moving most of its implementation to
_internal_prep_message() for upcoming refactorings.
2017-04-28 20:58:09 -07:00
Cory Lynch
e972453a73
message edit: Remove Topic and Content labels.
...
Removed the components from the template and
cleaned up the relevant css.
Fixes #4562
2017-04-28 20:57:06 -07:00
Steve Howell
4762673929
Fix how we calculate fields in stream_data.js.
...
We used to have code scattered in multiple places to
calculate things like admin options, preview urls,
subscriber counts, and rendered descriptions for
streams before we rendered templates in the "Manage
Stream" code.
These are all consolidated into a new function
called stream_data.update_calculated_fields().
This is mostly code cleanup, but it also fixes a bug where
the "View Stream" button would not work for a newly created
stream.
2017-04-28 17:49:33 -07:00