Vishnu KS
051dab58ea
navbar: Add gear menu advertisement for sponsoring zulip.
2021-05-12 10:21:48 -07:00
Tim Abbott
50f00d3e97
emails: Add unsubscribe link infrastructure for marketing emails.
...
This is intended to be used in any marketing emails that we send with
the send_custom_email infrastructure.
2021-04-27 21:36:09 -07:00
Dinesh
734d935d4a
client_capabilities: Add stream_typing_notifications.
2021-04-27 20:52:21 -07:00
Tim Abbott
05f2ebb2b8
settings: Include units in SERVER_UPGRADE_NAG_DEADLINE_DAYS name.
...
When naming things with units of time involved, it's always good to
include units in the name, so that the meaning is clear.
2021-04-27 17:15:16 -07:00
Tim Abbott
a3640223b8
security: Check when server directory was unpacked for upgrade nag.
...
The comment explains in more detail, but this should help avoid cases
where a Zulip server accidentally avoids the nag by having upgraded to
a 2-year old Zulip version from a 3-year-old version 2 months ago.
2021-04-27 17:09:27 -07:00
Nyior
8e2042d378
security: Add tooling to nag users if a Zulip server is very old.
...
This will help ensure that users upgrade their Zulip server.
Essentially rewritten by tabbott.
Fixes part of #17826 .
2021-04-27 12:10:48 -07:00
Anders Kaseorg
38ffd47b90
js: Convert static/js/page_params.js to ES6 module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-03-26 10:17:56 -07:00
Anders Kaseorg
6e4c3e41dc
python: Normalize quotes with Black.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-02-12 13:11:19 -08:00
Anders Kaseorg
11741543da
python: Reformat with Black, except quotes.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-02-12 13:11:19 -08:00
Steve Howell
3df507be73
refactor: Clean up args for fetch_initial_state_data.
...
We now require explicit keywords for all arguments
to fetch_initial_state_data except user_profile.
We provide reasonable defaults to keep the test
code concise.
2021-01-17 12:31:04 -05:00
Aman Agrawal
87cdd8433d
home: Allow logged out user through home.
...
We allow user to load webapp without log-in. This is only
be enabled for developed purposes now. Production setups will
see no changes.
2020-11-02 17:07:12 -08:00
Steve Howell
1bcb8d8ee8
performance: Avoid computing page_params.streams in webapp.
...
The query to get "occupied" streams has been expensive
in the past. I'm not sure how much any recent attempts
to optimize that query have mitigated the issue, but
since we clearly aren't sending this data, there is no
reason to compute it.
2020-10-14 10:53:10 -07:00
Aman Agrawal
fbf7cb82a7
web_public_guest: Rename to web_public_visitor for clarity.
...
Using web_public_guest for anonymous users is confusing since
'guest' is actually a logged-in user compared to
web_public_guest which is not logged-in and has only
read access to messages. So, we rename it to
web_public_visitor.
2020-10-13 16:59:52 -07:00
Abhijeet Prasad Bodas
a20d22de43
i18n: Move locale select logic in home to i18n.py.
...
Part of #16094 .
Moved the language selection preference logic from home.py to a new
function in i18n.py to avoid repetition in analytics views and home
views.
2020-10-02 14:56:20 -07:00
Tim Abbott
6d041a3b34
home: Include is_web_public_guest in page_params.
2020-10-01 15:07:19 -07:00
Tim Abbott
351d73ac5a
home: Pass realm to build_page_params_for_home_page_load.
...
This is preparation for this needing to be a separate parameter from
the user.
2020-10-01 15:00:36 -07:00
Abhijeet Prasad Bodas
d9d51e32c1
i18n: Simplify logic for translation data in page_params.
...
This refactors the get_translation_data function to return an empty
dict when 'en' language is passed, to avoid repetition of code in
stats and home.
2020-09-25 16:21:37 -07:00
Steve Howell
1fa6ae1e16
refactor: Extract build_page_params_for_home_page_load.
2020-07-22 17:15:03 -07:00
Steve Howell
27072289ce
refactor: Extract zerver/lib/home.py.
...
The two functions extracted here are mostly
copied verbatim, but we use dataclasses
to marshal the values back.
2020-07-22 17:15:02 -07:00