zulip/static/templates
Harshit Bansal b553507412 subscriptions: Migrate notification setting defaults model.
This commit migrates the Subscription's notification fields from a
BooleanField to a NullBooleanField where a value of None means to
inherit the value from user's profile.

Also includes a migrations to set the corresponding settings to None
if they match the user profile's values. This migration helps us in
getting rid of the weird "Apply to all" widget that we offered on
subscription settings page.

The mobile apps can't handle None appearing as the stream-level
notification settings, so for backwards-compatibility we arrange to
only send True/False to the mobile apps by applying those defaults
server-side.  We introduce a notification_settings_null value within a
client_capabilities structure that newer versions of the mobile apps
can use to request the new model.

This mobile compatibility code is pretty effectively tested by the
existing test_events tests for the subscriptions subsystem.
2019-05-08 17:45:10 -07:00
..
settings digest: Move digest weekday drop-down next to the enable checkbox. 2019-05-08 14:39:12 -07:00
widgets poll_widget: Add highlight for vote count if current user votes. 2019-03-01 16:35:18 -08:00
.gitignore
actions_popover_content.handlebars popovers: Avoid passing message to actions popover template. 2018-12-29 14:19:18 -08:00
admin-settings-modals.handlebars settings_user: Add modal for user info and roles form. 2018-07-30 13:48:36 -07:00
admin_default_streams_list.handlebars admin_default_streams_list.handlebars: Use fa-4.7 icon prefixes. 2018-07-11 20:17:11 +05:30
admin_emoji_list.handlebars settings_emoji: Use display_name in handlebars. 2018-08-07 10:22:08 -07:00
admin_filter_list.handlebars linkifiers: Add no-select to trash icon. 2019-03-08 15:05:05 -08:00
admin_invites_list.handlebars settings_invites: Display links for multi-use invitations. 2019-02-15 14:28:07 -08:00
admin_profile_field_list.handlebars custom profile field: Fix styling regression in admin settings. 2019-05-07 08:56:01 -07:00
admin_tab.handlebars invites: Add UI for revoking multiuse invites. 2019-02-15 14:13:31 -08:00
admin_user_group_list.handlebars user groups: Display error on user group name edit failure. 2018-08-13 16:13:49 -07:00
admin_user_list.handlebars css: Remove `display-none` class css entirely. 2019-05-08 09:41:48 -07:00
alert_word_settings_item.handlebars alert_word_settings_item.handlebars: Use fa-4.7 icon prefixes. 2018-07-11 20:31:17 +05:30
all_messages_sidebar_actions.handlebars all_messages_sidebar_actions.handlebars: Use fa-4.7 icon prefixes. 2018-07-11 20:17:11 +05:30
announce_stream_docs.handlebars create stream: Use English grammar for message about announcement. 2018-02-01 11:26:57 -08:00
archive_message_group.handlebars message_list: Rename show_date_separator to show_group_date_divider. 2019-02-08 11:30:15 -08:00
archive_recipient_row.handlebars subject -> topic: Fix group.subject references. 2018-11-16 11:05:43 -08:00
bankruptcy_modal.handlebars
bookend.handlebars
bot_avatar_row.handlebars settings: Interchange Username and Bot Type positions. 2018-10-16 17:09:20 -07:00
bot_owner_select.handlebars settings_user: Refactor `open-user-form` click handler. 2018-07-30 13:48:36 -07:00
compose-invite-users.handlebars compose: Hide subscribe button and change text for waiting period users. 2018-08-13 10:18:35 -07:00
compose_all_everyone.handlebars
compose_announce.handlebars
compose_not_subscribed.handlebars compose: Hide sub-btn in compose-to-unsub warning if user can't subscribe. 2018-11-02 11:57:04 +05:30
compose_notification.handlebars
compose_private_stream_alert.handlebars compose: Improve line wrapping for multiline compose box alerts. 2018-03-06 13:01:41 -08:00
confirm_delete_user.handlebars settings: Confirm before deleting user groups. 2018-10-12 10:38:56 -07:00
confirm_dialog.handlebars settings: Add confirm_dialog module. 2018-10-12 10:37:06 -07:00
default_language_modal.handlebars settings: Add modal fade. 2018-04-28 12:55:15 -07:00
delete_topic_modal.handlebars delete topic: Update wording in confirmation modal. 2019-02-06 22:16:24 -08:00
draft.handlebars markdown: Add .rendered_markdown for all elements with rendered MD content. 2019-04-05 17:13:20 -07:00
draft_table_body.handlebars drafts: Add reminder of hotkey. 2019-02-13 16:16:34 -08:00
edit_bot.handlebars css: Remove `display-none` class css entirely. 2019-05-08 09:41:48 -07:00
edited_notice.handlebars refactor: Extract edited_notice template. 2019-03-01 15:42:12 -08:00
email_address_hint.handlebars subscription: Improve email-hint popover style. 2018-03-23 09:55:44 -07:00
embedded_bot_config_item.handlebars linter: Make html singleton tags use 2 space indentation. 2018-04-07 20:08:31 -07:00
emoji_popover.handlebars
emoji_popover_content.handlebars emoji_popover_content.handlebars: Upgrade to font-awesome 4.7 icon prefixes. 2018-07-11 20:17:11 +05:30
emoji_popover_emoji.handlebars emoji: Rename `css_class` to `emoji_code` in emoji.js. 2018-07-23 12:35:08 -07:00
emoji_popover_search_results.handlebars
emoji_showcase.handlebars emoji: Rename `css_class` to `emoji_code` in emoji.js. 2018-07-23 12:35:08 -07:00
feedback_container.handlebars ui: Render feedback widget client side. 2019-01-04 10:54:10 -08:00
group_pms.handlebars css: Use user_circle_fraction for group PM circles. 2019-02-18 14:22:37 -08:00
hotspot_overlay.handlebars template_parser: Add parsing support for self closing tags as per HTML5. 2018-02-15 17:47:43 -05:00
input_pill.handlebars input-pill: Refactor pills to eliminate fixed positioning of elements. 2018-07-23 10:21:13 -07:00
intro_reply_hotspot.handlebars hotspots: Change styling of intro to reply hotspot. 2018-10-02 11:38:26 -07:00
invitation_failed_error.handlebars invite: Clean error handling and use ui_report. 2019-01-17 10:28:59 -08:00
invite_subscription.handlebars invites: Use stream_id instead of stream names in invitation. 2019-02-01 15:47:20 -08:00
loader.handlebars org settings: Fix a bug where the loading spinner was not visible. 2018-08-08 10:59:23 -07:00
me_message.handlebars message_list_view: Move edited position conditionals to JS. 2019-05-06 21:37:54 -07:00
message_avatar.handlebars Revert "user-profiles: Lazy load profile pictures when in view." 2019-04-12 16:50:37 -07:00
message_body.handlebars message_list_view: Move edited position conditionals to JS. 2019-05-06 21:37:54 -07:00
message_controls.handlebars refactor: Extract message_controls template. 2019-03-01 15:42:12 -08:00
message_edit_form.handlebars uploads: Remove unusable UI elements if file uploading is disabled. 2019-05-08 17:10:07 -07:00
message_edit_history.handlebars markdown: Add .rendered_markdown for all elements with rendered MD content. 2019-04-05 17:13:20 -07:00
message_group.handlebars message_list: Rename show_date_separator to show_group_date_divider. 2019-02-08 11:30:15 -08:00
message_reaction.handlebars
message_reactions.handlebars accessibility: Make another reactions button semi-accessible. 2018-11-08 14:10:48 -08:00
mobile_message_buttons_popover.handlebars compose: Create the mobile compose popover. 2018-10-31 16:47:48 -07:00
mobile_message_buttons_popover_content.handlebars compose: Create the mobile compose popover. 2018-10-31 16:47:48 -07:00
more_topics.handlebars css: Hover individual topic rows. 2019-03-14 13:54:35 -07:00
muted_topic_ui_row.handlebars muting: Add stream_id to markup for mute settings. 2018-12-14 16:05:35 -08:00
new_stream_users.handlebars linter: Make html singleton tags use 2 space indentation. 2018-04-07 20:08:31 -07:00
no_arrow_popover.handlebars popovers: Rename template to `no_arrow_popover`. 2019-02-14 16:16:04 -08:00
non_editable_user_group.handlebars user pills: Rename class `notmem` to `not-editable` for generalization. 2018-08-21 11:50:01 -07:00
notification.handlebars
recipient_row.handlebars copy: Fix extra space before > in copy-paste styling. 2019-03-01 16:26:28 -08:00
remind_me_popover_content.handlebars reminders: Add various design improvements for the UI/reminder msg. 2018-05-21 09:07:37 -07:00
settings_tab.handlebars settings: Remove obsolete default_desktop_notifications setting. 2018-04-28 13:46:07 -07:00
sidebar_private_message_list.handlebars pm list: Remove "(more conversations)" feature. 2019-04-11 16:26:54 -07:00
single_message.handlebars single_msg_handlebars: Cleanup moving css rules in stylesheets. 2019-05-06 21:28:46 -07:00
starred_messages_sidebar_actions.handlebars left sidebar: Add option to toggle 'Display starred count'. 2019-05-07 10:58:12 -07:00
stream_creation_form.handlebars streams_edit: Prevent newline characters in the description. 2019-02-20 12:27:54 -08:00
stream_member_list_entry.handlebars
stream_privacy.handlebars stream_privacy.handlebars: Upgrade to font-awesome 4.7 icon prefixes. 2018-07-11 20:17:11 +05:30
stream_sidebar_actions.handlebars popovers: Remove a few entries from stream popover. 2019-03-06 17:36:06 -08:00
stream_sidebar_row.handlebars left sidebar: Simplify filter icon CSS logic. 2019-04-13 13:21:51 -07:00
stream_types.handlebars stream settings: Hide creating admin-only streams in members UI. 2019-01-24 10:51:49 -08:00
subscription.handlebars streams: Disable sub-check-btn if user is not allowed to subscribe. 2019-05-07 16:33:01 -07:00
subscription_count.handlebars subscriptions_settings_modal: Upgrade to font-awesome 4.7 icon prefixes. 2018-07-11 20:17:11 +05:30
subscription_invites_warning_modal.handlebars dark-mode: Make all modals compatible with night mode. 2018-02-09 14:21:13 -08:00
subscription_members.handlebars subscriptions: Add tooltip, only subscribers can add user in private stream. 2019-01-05 16:21:41 -08:00
subscription_setting_icon.handlebars subscriptions_settings_modal: Upgrade to font-awesome 4.7 icon prefixes. 2018-07-11 20:17:11 +05:30
subscription_settings.handlebars subscriptions: Migrate notification setting defaults model. 2019-05-08 17:45:10 -07:00
subscription_stream_privacy_modal.handlebars streams: Improve 'is-announcement-only' checkbox. 2018-06-01 10:05:13 -07:00
subscription_table_body.handlebars user docs: Update stream guidelines link in stream subscriptions modal. 2018-10-01 12:45:59 -07:00
subscription_type.handlebars streams: Update description for stream-privacy-type. 2019-05-08 14:49:27 -07:00
subscriptions.handlebars refactor: Render Stream Settings in two steps. 2018-07-26 11:20:46 -07:00
tab_bar.handlebars top left: Remove home-link markup in the main app. 2019-01-30 13:53:20 -08:00
topic_edit_form.handlebars topic_edit_form.handlebars: Upgrade to font-awesome 4.7 icon prefixes. 2018-07-11 20:31:17 +05:30
topic_list_item.handlebars css: Hover individual topic rows. 2019-03-14 13:54:35 -07:00
topic_muted.handlebars muting: Rename container template to feedback_widget.html. 2019-01-04 10:48:19 -08:00
topic_sidebar_actions.handlebars messages: Add support for quickly deleting all messages in a topic. 2019-02-01 17:09:44 -08:00
typeahead_list_item.handlebars typeahead: Rename `codepoint` to `emoji_code`. 2019-01-05 15:09:04 -08:00
typing_notification.handlebars
typing_notifications.handlebars
unstar-messages-modal.handlebars left sidebar: Add an "unstar all messages" option. 2019-03-07 20:52:00 -08:00
uploaded_files_list.handlebars uploaded_files_list.handlebars: Upgrade to font-awesome 4.7 icon prefixes. 2018-07-11 20:31:16 +05:30
user-groups-admin.handlebars help: Add user-groups. 2019-02-28 17:11:27 -08:00
user-info-form-modal.handlebars admin: Display email addresses in user-edit widget. 2019-03-04 09:17:05 -08:00
user_group_info_popover.handlebars popovers: Add a popover for group mentions. 2018-02-16 13:37:02 -08:00
user_group_info_popover_content.handlebars refactor: Simplify logic for circles. 2019-02-18 14:22:37 -08:00
user_info_popover_content.handlebars popovers: Add a clear status option in user popover. 2019-02-26 14:40:17 -08:00
user_info_popover_title.handlebars popovers: Add guest avatar marker to user info popover. 2018-12-30 11:07:00 -08:00
user_presence_row.handlebars buddy list: Use user-list-arrow class. 2019-03-04 15:35:40 -08:00
user_presence_rows.handlebars
user_profile_modal.handlebars user status: Change Last seen to Last online. 2019-03-14 15:19:09 -07:00