Vaida
d5517bae36
Delete the old zulip.com "referrals" system.
...
This system hasn't been in active use for several years, and had some
problems with it's design. So it makes sense to just remove it to declutter
the codebase.
Fixes #5655 .
2017-07-07 14:59:18 -07:00
Vishnu Ks
92e7255217
page_params: Include password min length and quality.
...
The change password form http://localhost:9991/#settings/your-account
don't have data-min-length and data-min-quality attributes. The
account_settings.handlebar which has the change password form is
rendered client side. So we have to pass the value of min length
and quality in page params to set the data-min-length and
data-min-quality attributes.
2017-07-07 14:48:06 -07:00
Greg Price
04b363f3a2
apps: Redirect /apps -> zulipchat.com/apps, except on upstream itself.
...
This page describes software the user will get from upstream for
their own devices, independent of what's on the server they're
using. So it should live in a place maintained together with
that other software, rather than be distributed and versioned
with the server.
The use of ZILENCER_ENABLED to tell the difference is rather a hack
but is currently how we do this in the small handful of similar
spots; see #5245 .
Fixes #5234 .
2017-06-06 11:21:20 -07:00
Aditya Bansal
fe3b42c8f8
pep8: Add compliance with rule E261 to zerver/views/home.py.
2017-05-18 03:00:32 +05:30
Tim Abbott
850519b314
api: Move cross_realm_bots into the register_ret response.
...
This is probably not the right long-term solution to the cross-realm
bots problem (that solution is probably to eliminate cross-realm bots
and replace them with per-realm bots). But in the short term, this
will at least make it possible for mobile apps to interact with these
cross-realm bots using the `realm_user` data set.
2017-05-16 20:23:13 -07:00
Tim Abbott
cab908b664
api: Move notifications_stream into the register_ret API.
...
While we're at it, we at least fix the API to use a stream ID, not a
stream name, to refer to the notifications stream.
2017-05-16 18:57:14 -07:00
Tim Abbott
97abaae9af
home: Remove now-unnecessary page_params_core_fields duplication.
...
Also, we update the documentation to make the overall system a bit
clearer.
Fixes #4628 .
2017-05-13 22:58:18 -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
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
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
Harshit Bansal
07081196f4
backend: Allow to change UserProfile's `emojiset` field via api.
2017-04-24 22:30:07 -07:00
Harshit Bansal
ac2172e233
models: Rename RealmAlias model to RealmDomain.
...
Includes a migration.
2017-04-04 15:48:03 -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
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