Tim Abbott
df6dba9673
test_home: Fix expected text in /hello page.
2017-05-09 16:59:33 -07:00
Steve Howell
3b2a3601c1
tests: Add ZulipTestCase.notification_bot().
2017-05-08 11:57:38 -07:00
Steve Howell
6bc8424c71
Use self.example_user() in more places.
...
This fixes most cases where we were assigning a user to
the var email and then calling get_user_profile_by_email with
that var.
(This was fixed mostly with a script.)
2017-05-08 11:57:38 -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
Tim Abbott
df8f4a837c
home: Get page_params.enable_desktop_notifications from register_ret.
2017-04-28 23:15:35 -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
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
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
6d2785c853
home.py: move domains as realm_domains to register_ret.
...
Part of #3853 .
2017-04-28 21:11:56 -07:00
Harshit Bansal
07081196f4
backend: Allow to change UserProfile's `emojiset` field via api.
2017-04-24 22:30:07 -07:00
Tim Abbott
cf2897d758
test_home: Fix test_handlebars_compile_error mock request.
...
Using a MagicMock for the request caused weird problems with invalid
input in the context processors.
2017-04-17 22:15:46 -07:00
Amy Liu
6f061beb46
hotspots: Add backend support for tutorial hotspots.
...
This commit adds the backend support for a new style of tutorial which
allows for highlighting of multiple areas of the page with hotspots that
disappear when clicked by the user.
2017-03-29 11:34:32 -07:00
Elliott Jin
98ddb4453e
test-backend: Raise zerver/views/home.py test coverage to 100%.
2017-03-25 18:16:16 -07:00
K.Kanakhin
234a1f8e61
retention-period: Add retention period to front-end admin organization settings.
...
- Add message retention period field to organization settings form.
- Add css for retention period field.
- Add convertor to not negative int or to None.
- Add retention period setting processing to back-end.
- Fix tests.
Modified by tabbott to hide the setting, since it doesn't work yet.
The goal of merging this setting code now is to avoid unnecessary
merge conflicts in the future.
Part of #106 .
2017-03-25 17:57:18 -07:00
Ayush Jain
bddcfb1c96
Add realm-level settings to control inline image and url preview.
...
This gives users more control in case they don't want previews,
especially for the "previews of linked websites" feature.
Fixes : #2640 .
2017-03-21 15:46:17 -07:00
Sarah Stringer
aa880b0419
Add organization description field to realm settings.
...
This adds an organization description field to the Realm model, as well as
an input field to the organization settings template. Added three tests.
Set the max length of the field to 100 characters.
Fixes #3962 .
2017-03-19 14:05:01 -07:00
Umair Khan
242d3ffaf4
Add timezone field in UserProfile.
...
Implements backend of #1506 .
2017-03-15 11:18:24 -07:00
Raghav Jajodia
ef7e15ee00
admin: Add realm option to prevent users from changing their name.
...
A realm option to prevent users from changing their name is added.
Fixes #3950 .
2017-03-14 14:10:08 -07:00
Raghav Jajodia
dc48b87765
home.py: Fix bug associated with email_changes_disabled.
...
On reloading the page after disabling email changes does not check
the "Prevent users from changing their email address".
Adding realm_email_changes_disabled to page_params_core_fields fixes the problem.
2017-03-14 14:10:08 -07:00
Rishi Gupta
098797cd36
Remove page_params.domain.
2017-03-13 14:42:55 -07:00
Raghav Jajodia
c17e574211
Remove product_name setting and return to harcoding 'Zulip'.
...
This removes some confusion in grep for frontend strings with Zulip in
them and also cleans up the code in some places.
Fixes #1602 .
2017-03-09 21:48:15 -08:00
Rishi Gupta
3797fa657e
Change bot domains to string_id.EXTERNAL_HOST.
...
Change applies to both subdomains and non-subdomains case, though we use
just the EXTERNAL_HOST in the non-subdomains case if there is only 1 realm.
Fixes #3903 .
2017-03-08 16:26:13 -08:00
Tim Abbott
c66549dee0
tests: Extract zerver/tests/test_home.py.
2017-03-08 03:00:05 -08:00