zulip/static/templates
Pragati Agrawal bd9b74436c org settings: Enable message_retention_days in org settings UI.
Since production testing of `message_retention_days` is finished, we can
enable this feature in the organization settings page. We already had this
setting in frontend but it was bit rotten and not rendered in templates.

Here we replaced our past text-input based setting with a
dropdown-with-text-input setting approach which is more consistent with our
existing UI.

Along with frontend changes, we also incorporated a backend change to
handle making retention period forever. This change introduces a new
convertor `to_positive_or_allowed_int` which only allows positive integers
and an allowed value for settings like `message_retention_days` which can
be a positive integer or has the value `Realm.RETAIN_MESSAGE_FOREVER` when
we change the setting to retain message forever.

This change made `to_not_negative_int_or_none` redundant so removed it as
well.

Fixes: #14854
2020-05-08 14:09:31 -07:00
..
settings org settings: Enable message_retention_days in org settings UI. 2020-05-08 14:09:31 -07:00
widgets templates: Use `<hr>` and `<br>` consistently. 2020-04-28 17:05:48 -07:00
actions_popover_content.hbs docs: Convert many http URLs to https. 2020-03-26 21:35:32 -07:00
admin_default_streams_list.hbs default streams: Change remove api to use stream_id. 2020-03-25 17:11:25 -07:00
admin_emoji_list.hbs settings: Improve styling of emoji in admin table. 2020-04-08 14:43:20 -07:00
admin_export_list.hbs data exports: Keep deleted export in UI table. 2020-04-30 13:00:59 -07:00
admin_filter_list.hbs org settings: Reduce the width occupied by the actions column in tables. 2019-08-22 13:13:24 -07:00
admin_invites_list.hbs invitation: Make Member to see invitations sent by him/her. 2020-05-01 17:42:49 -07:00
admin_profile_field_list.hbs templates: Use `<hr>` and `<br>` consistently. 2020-04-28 17:05:48 -07:00
admin_settings_modals.hbs templates: Use upstream Handlebars partials syntax. 2019-07-12 21:11:14 -07:00
admin_tab.hbs data export: Add UI to trigger data export. 2019-08-12 18:21:38 -07:00
admin_user_group_list.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
admin_user_list.hbs settings: Fix i18n tagging of `(you)` to be consistent. 2020-04-23 17:28:34 -07:00
all_messages_sidebar_actions.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
announce_stream_docs.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
archive_message_group.hbs templates: Use upstream Handlebars partials syntax. 2019-07-12 21:11:14 -07:00
archive_recipient_row.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
blueslip_stacktrace.hbs blueslip: Make stack trace more readable. 2019-10-31 13:47:54 -07:00
bookend.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
bot_avatar_row.hbs settings: Change username to `bot email` in bot settings HTML. 2019-09-23 15:55:25 -07:00
bot_owner_select.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
buddy_list_tooltip.hbs user status: Add JS tooltips for Buddy List and PM List. 2019-11-20 12:49:37 -08:00
buddy_list_tooltip_content.hbs templates: Use `<hr>` and `<br>` consistently. 2020-04-28 17:05:48 -07:00
compose_all_everyone.hbs templates: Use `<hr>` and `<br>` consistently. 2020-04-28 17:05:48 -07:00
compose_announce.hbs templates: Use `<hr>` and `<br>` consistently. 2020-04-28 17:05:48 -07:00
compose_invite_users.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
compose_not_subscribed.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
compose_notification.hbs lint: Replace local variables named 'msgid' with 'message_id'. 2019-08-28 15:19:30 -07:00
compose_private_stream_alert.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
confirm_delete_user.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
confirm_dialog.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
default_language_modal.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
delete_topic_modal.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
draft.hbs CVE-2020-9444: Prevent reverse tabnabbing attacks. 2020-04-01 14:01:45 -07:00
draft_table_body.hbs templates: Use upstream Handlebars partials syntax. 2019-07-12 21:11:14 -07:00
edit_bot.hbs settings: Redesign edit bot form. 2020-04-28 23:08:45 -07:00
edited_notice.hbs message_edit: Add message edit local echo. 2019-11-20 17:40:19 -08:00
embedded_bot_config_item.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
emoji_popover.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
emoji_popover_content.hbs templates: Use upstream Handlebars partials syntax. 2019-07-12 21:11:14 -07:00
emoji_popover_emoji.hbs static/templates/emoji_popover_emoji: Fix typo. 2019-07-25 14:56:12 -07:00
emoji_popover_search_results.hbs templates: Use upstream Handlebars partials syntax. 2019-07-12 21:11:14 -07:00
emoji_showcase.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
feedback_container.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
group_pms.hbs user status: Add JS tooltips for Buddy List and PM List. 2019-11-20 12:49:37 -08:00
hotspot_overlay.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
input_pill.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
intro_reply_hotspot.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
invitation_failed_error.hbs invitations: Improve experience around reactivating users. 2020-01-13 18:30:51 -08:00
invite_subscription.hbs invite: Fix capitalization for 'receives new stream notifications'. 2020-01-27 17:06:51 -08:00
loader.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
me_message.hbs CVE-2020-9444: Prevent reverse tabnabbing attacks. 2020-04-01 14:01:45 -07:00
message_avatar.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
message_body.hbs CVE-2020-9444: Prevent reverse tabnabbing attacks. 2020-04-01 14:01:45 -07:00
message_controls.hbs reactions_button: Remove title from reaction button in controls. 2019-07-25 16:13:19 -07:00
message_edit_form.hbs settings: Add option to disable video call in org settings. 2020-04-09 16:03:30 -07:00
message_edit_history.hbs templates: Use `<hr>` and `<br>` consistently. 2020-04-28 17:05:48 -07:00
message_group.hbs templates: Use upstream Handlebars partials syntax. 2019-07-12 21:11:14 -07:00
message_reaction.hbs templates: Fix invalid self-closing tags. 2020-04-18 13:13:14 -07:00
message_reactions.hbs message_view: Add a js tooltip hover for reaction button. 2019-07-19 12:45:44 -07:00
mobile_message_buttons_popover.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
mobile_message_buttons_popover_content.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
more_topics.hbs topic list: Split out spinner template. 2020-01-30 12:15:40 -08:00
more_topics_spinner.hbs topic list: Split out spinner template. 2020-01-30 12:15:40 -08:00
move_topic_to_stream.hbs messages: Allow moving a topic to another stream. 2020-05-04 10:03:03 -07:00
muted_topic_ui_row.hbs muting ui: Update the muted topics table in settings. 2020-04-22 15:07:15 -07:00
new_stream_users.hbs templates: Use `<hr>` and `<br>` consistently. 2020-04-28 17:05:48 -07:00
no_arrow_popover.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
non_editable_user_group.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
notification.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
pm_list_item.hbs pm_list: Simplify redraws for Private Messages. 2020-01-30 13:11:32 -08:00
recipient_row.hbs msg_recipient_bar: Add spacing between recipient_bar icons. 2020-04-02 17:08:44 -07:00
remind_me_popover_content.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
settings_tab.hbs templates: Use upstream Handlebars partials syntax. 2019-07-12 21:11:14 -07:00
single_message.hbs templates: Use upstream Handlebars partials syntax. 2019-07-12 21:11:14 -07:00
starred_messages_sidebar_actions.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
stream_creation_form.hbs settings: Migrate to stream_post_policy structure. 2020-02-04 17:08:08 -08:00
stream_member_list_entry.hbs subscriber list: Fix display of email addresses in subscribers list. 2020-03-08 12:42:08 -07:00
stream_privacy.hbs templates: Extract subscription_privacy partial template. 2020-04-01 14:40:41 -07:00
stream_settings_checkbox.hbs templates: Reorder conditionals for stream_settings_checkbox. 2020-01-28 14:26:53 -08:00
stream_sidebar_actions.hbs ui: replace all mute icons from eye/eye-slash with bell/bell-slash. 2020-03-22 12:31:48 -07:00
stream_sidebar_row.hbs sidebar: Rename classes for menu icons in sidebars. 2020-04-30 10:56:09 -07:00
stream_types.hbs stream settings: Add links to /help/ for stream type settings. 2020-02-18 10:53:46 -08:00
subscription.hbs stream settings: Fix UI feedback on clicking checkbox to subscribe. 2020-04-18 22:00:02 -07:00
subscription_count.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
subscription_invites_warning_modal.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
subscription_members.hbs stream settings: Allow tabbing to the input to add new subscribers. 2020-03-26 11:31:15 -07:00
subscription_privacy.hbs templates: Extract subscription_privacy partial template. 2020-04-01 14:40:41 -07:00
subscription_setting_icon.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
subscription_settings.hbs stream settings: Display success/failure status for edits. 2020-04-01 14:40:41 -07:00
subscription_stream_privacy_modal.hbs templates: Use upstream Handlebars partials syntax. 2019-07-12 21:11:14 -07:00
subscription_table_body.hbs manage streams: Move stream filter to next line. 2020-04-19 09:59:11 -04:00
subscription_type.hbs subscription_type: Improve wording for full members case. 2020-02-04 17:14:28 -08:00
subscriptions.hbs templates: Use upstream Handlebars partials syntax. 2019-07-12 21:11:14 -07:00
tab_bar.hbs navbar: Improve structure & styling for top navbar. 2020-04-17 13:35:44 -07:00
topic_edit_form.hbs message_edit: Show error message if error edit fails. 2020-04-22 16:25:37 -07:00
topic_list_item.hbs sidebar: Rename classes for menu icons in sidebars. 2020-04-30 10:56:09 -07:00
topic_muted.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
topic_sidebar_actions.hbs messages: Allow moving a topic to another stream. 2020-05-04 10:03:03 -07:00
typeahead_list_item.hbs templates: Fix invalid self-closing tags. 2020-04-18 13:13:14 -07:00
typing_notification.hbs i18n: Add missing translation tags to typing notifications. 2020-02-12 10:54:34 -08:00
typing_notifications.hbs templates: Use upstream Handlebars partials syntax. 2019-07-12 21:11:14 -07:00
unstar_messages_modal.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
uploaded_files_list.hbs org settings: Reduce the width occupied by the actions column in tables. 2019-08-22 13:13:24 -07:00
user_group_info_popover.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
user_group_info_popover_content.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
user_groups_admin.hbs settings user groups: Fix organization admin can not create user groups. 2020-02-24 12:12:52 -08:00
user_info_form_modal.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
user_info_popover_content.hbs templates: Use `<hr>` and `<br>` consistently. 2020-04-28 17:05:48 -07:00
user_info_popover_title.hbs templates: Rename *.handlebars ↦ *.hbs and - ↦ _. 2019-07-12 21:11:03 -07:00
user_presence_row.hbs sidebar: Rename classes for menu icons in sidebars. 2020-04-30 10:56:09 -07:00
user_presence_rows.hbs templates: Use upstream Handlebars partials syntax. 2019-07-12 21:11:14 -07:00
user_profile_modal.hbs CVE-2020-9444: Prevent reverse tabnabbing attacks. 2020-04-01 14:01:45 -07:00