mirror of https://github.com/zulip/zulip.git
templates: Use upstream Handlebars partials syntax.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
0bd5c46e40
commit
0c565f50be
|
@ -42,7 +42,7 @@
|
|||
<hr />
|
||||
<div class="edit_profile_field_choices_container">
|
||||
{{#each choices}}
|
||||
{{partial "settings/profile_field_choice" }}
|
||||
{{> settings/profile_field_choice }}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{{ partial "settings/deactivation_user_modal" }}
|
||||
{{> settings/deactivation_user_modal }}
|
||||
|
||||
{{ partial "settings/realm_domains_modal" }}
|
||||
{{> settings/realm_domains_modal }}
|
||||
|
||||
{{ partial "settings/revoke_invite_modal" }}
|
||||
{{> settings/revoke_invite_modal }}
|
||||
|
||||
{{ partial "settings/resend_invite_modal" }}
|
||||
{{> settings/resend_invite_modal }}
|
||||
|
||||
<div id="user-info-form-modal-container"></div>
|
||||
|
|
|
@ -1,30 +1,30 @@
|
|||
<div class="alert" id="organization-status"></div>
|
||||
<div id="revoke_invite_modal_holder"></div>
|
||||
|
||||
{{ partial "admin_settings_modals"}}
|
||||
{{> admin_settings_modals}}
|
||||
|
||||
{{ partial "settings/organization_profile_admin" }}
|
||||
{{> settings/organization_profile_admin }}
|
||||
|
||||
{{ partial "settings/organization_settings_admin" }}
|
||||
{{> settings/organization_settings_admin }}
|
||||
|
||||
{{ partial "settings/organization_permissions_admin" }}
|
||||
{{> settings/organization_permissions_admin }}
|
||||
|
||||
{{ partial "settings/emoji_settings_admin" }}
|
||||
{{> settings/emoji_settings_admin }}
|
||||
|
||||
{{ partial "settings/user_list_admin" }}
|
||||
{{> settings/user_list_admin }}
|
||||
|
||||
{{ partial "settings/deactivated_users_admin" }}
|
||||
{{> settings/deactivated_users_admin }}
|
||||
|
||||
{{ partial "settings/bot_list_admin" }}
|
||||
{{> settings/bot_list_admin }}
|
||||
|
||||
{{ partial "settings/default_streams_list_admin" }}
|
||||
{{> settings/default_streams_list_admin }}
|
||||
|
||||
{{ partial "settings/auth_methods_settings_admin" }}
|
||||
{{> settings/auth_methods_settings_admin }}
|
||||
|
||||
{{ partial "settings/linkifier_settings_admin" }}
|
||||
{{> settings/linkifier_settings_admin }}
|
||||
|
||||
{{ partial "settings/invites_list_admin" }}
|
||||
{{> settings/invites_list_admin }}
|
||||
|
||||
{{ partial "user_groups_admin" }}
|
||||
{{> user_groups_admin }}
|
||||
|
||||
{{ partial "settings/profile_field_settings_admin" }}
|
||||
{{> settings/profile_field_settings_admin }}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{{/if}}
|
||||
|
||||
<div class="recipient_row">
|
||||
{{partial "archive_recipient_row" }}
|
||||
{{> archive_recipient_row }}
|
||||
{{#each message_containers}}
|
||||
{{{ this }}}
|
||||
{{/each}}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
</div>
|
||||
|
||||
{{#each drafts}}
|
||||
{{partial "draft"}}
|
||||
{{> draft}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<div class="edit-bot-owner">
|
||||
<label for="bot_owner_select">{{t "Owner" }}</label>
|
||||
<div class="select-form">
|
||||
{{partial "bot_owner_select" }}
|
||||
{{> bot_owner_select }}
|
||||
</div>
|
||||
</div>
|
||||
<div id="service_data">
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<div class="emoji-popover-subheading" data-section="{{name}}">{{name}}</div>
|
||||
<div class="emoji-collection" data-section="{{name}}">
|
||||
{{#each this.emojis }}
|
||||
{{ partial "emoji_popover_emoji" "type" "emoji_picker_emoji" "section" @../index "index" @index "message_id" ../../message_id "emoji_dict" this}}
|
||||
{{> emoji_popover_emoji type="emoji_picker_emoji" section=@../index index=@index message_id=../../message_id emoji_dict=this}}
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/each}}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{{#each search_results}}
|
||||
{{ partial "emoji_popover_emoji" "type" "emoji_search_result" "section" "0" "index" @index "message_id" ../message_id "emoji_dict" this }}
|
||||
{{> emoji_popover_emoji type="emoji_search_result" section="0" index=@index message_id=../message_id emoji_dict=this }}
|
||||
{{/each}}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<span class="message_sender no-select">
|
||||
<span class="sender_info_hover">
|
||||
{{partial "message_avatar"}}
|
||||
{{> message_avatar}}
|
||||
</span>
|
||||
|
||||
<span class="sender-status">
|
||||
|
@ -14,7 +14,7 @@
|
|||
</span>
|
||||
|
||||
{{#if edited_status_msg}}
|
||||
{{partial "edited_notice"}}
|
||||
{{> edited_notice}}
|
||||
{{/if}}
|
||||
</span>
|
||||
</span>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<span class="message_sender sender_info_hover no-select">
|
||||
{{#if include_sender}}
|
||||
|
||||
{{partial "message_avatar"}}
|
||||
{{> message_avatar}}
|
||||
|
||||
<span class="sender_name auto-select" role="button" tabindex="0">{{msg/sender_full_name}}</span>
|
||||
{{#if sender_is_bot}}
|
||||
|
@ -15,7 +15,7 @@
|
|||
{{/unless}}
|
||||
|
||||
{{#if status_message}}
|
||||
{{partial "me_message"}}
|
||||
{{> me_message}}
|
||||
{{/if}}
|
||||
|
||||
<span class="alert-msg pull-right"></span>
|
||||
|
@ -28,10 +28,10 @@
|
|||
</span>
|
||||
|
||||
{{#if edited_alongside_sender}}
|
||||
{{partial "edited_notice"}}
|
||||
{{> edited_notice}}
|
||||
{{/if}}
|
||||
|
||||
{{partial "message_controls"}}
|
||||
{{> message_controls}}
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
|||
{{/unless}}
|
||||
|
||||
{{#if edited_in_left_col}}
|
||||
{{partial "edited_notice"}}
|
||||
{{> edited_notice}}
|
||||
{{/if}}
|
||||
|
||||
<div class="message_edit">
|
||||
|
@ -48,4 +48,4 @@
|
|||
</div>
|
||||
<div class="message_expander message_length_controller" title="{{t 'See the rest of this message' }}">{{t "[More...]" }}</div>
|
||||
<div class="message_condenser message_length_controller" title="{{t 'Make this message take up less space on the screen' }}">{{t "[Condense this message]" }}</div>
|
||||
<div class="message_reactions">{{ partial "message_reactions" }}</div>
|
||||
<div class="message_reactions">{{> message_reactions }}</div>
|
||||
|
|
|
@ -8,20 +8,20 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if bookend_top}}
|
||||
{{partial "bookend"}}
|
||||
{{> bookend}}
|
||||
{{/if}}
|
||||
|
||||
<div class="recipient_row" id="{{message_group_id}}">
|
||||
{{partial "recipient_row" "use_match_properties" ../use_match_properties}}
|
||||
{{> recipient_row use_match_properties=../use_match_properties}}
|
||||
{{#each message_containers}}
|
||||
{{#with this}}
|
||||
{{partial "single_message" "use_match_properties" ../../use_match_properties "table_name" ../../table_name}}
|
||||
{{> single_message use_match_properties=../../use_match_properties table_name=../../table_name}}
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
{{#if bookend_bottom}}
|
||||
{{partial "bookend"}}
|
||||
{{> bookend}}
|
||||
{{/if}}
|
||||
|
||||
{{/with}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{#each this/msg/message_reactions}}
|
||||
{{partial "message_reaction"}}
|
||||
{{> message_reaction}}
|
||||
{{/each}}
|
||||
<div class="reaction_button" title="{{t 'Add emoji reaction' }} (:)">
|
||||
<i class="fa fa-smile-o" role="button" aria-haspopup="true" tabindex="0" aria-label="{{t 'Add emoji reaction' }} (:)"></i>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div id="org-auth_settings" class="admin-table-wrapper org-subsection-parent">
|
||||
<div class ="subsection-header">
|
||||
<h3>{{t "Authentication methods" }}</h3>
|
||||
{{ partial "settings/settings_save_discard_widget" "section_name" "auth_settings" }}
|
||||
{{> settings_save_discard_widget section_name="auth_settings" }}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
<div id="config_inputbox">
|
||||
{{#each page_params.realm_embedded_bots as |bot index|}}
|
||||
{{#each bot.config as |config_value config_key|}}
|
||||
{{partial "embedded_bot_config_item" "botname" bot.name "key" config_key "value" config_value}}
|
||||
{{> ../embedded_bot_config_item botname=bot.name key=config_key value=config_value}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
</div>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
</a>
|
||||
</div>
|
||||
|
||||
{{ partial "default_language_modal"}}
|
||||
{{> ../default_language_modal}}
|
||||
</div>
|
||||
|
||||
<div id="user-display-settings">
|
||||
|
@ -24,11 +24,11 @@
|
|||
<div class="alert-notification" id="display-settings-status"></div>
|
||||
|
||||
{{#each display_settings.settings.user_display_settings}}
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" this
|
||||
"is_checked" (lookup ../page_params this)
|
||||
"label" (lookup ../settings_label this)
|
||||
"render_only" (lookup ../display_settings.render_only this)}}
|
||||
{{> settings_checkbox
|
||||
setting_name=this
|
||||
is_checked=(lookup ../page_params this)
|
||||
label=(lookup ../settings_label this)
|
||||
render_only=(lookup ../display_settings.render_only this)}}
|
||||
{{/each}}
|
||||
|
||||
<div class="input-group">
|
||||
|
@ -49,10 +49,10 @@
|
|||
<h3 class="inline-block">{{t "Time settings" }}</h3>
|
||||
<div class="alert-notification" id="time-settings-status"></div>
|
||||
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "twenty_four_hour_time"
|
||||
"is_checked" page_params.twenty_four_hour_time
|
||||
"label" settings_label.twenty_four_hour_time}}
|
||||
{{> settings_checkbox
|
||||
setting_name="twenty_four_hour_time"
|
||||
is_checked=page_params.twenty_four_hour_time
|
||||
label=settings_label.twenty_four_hour_time}}
|
||||
|
||||
<div class="input-group">
|
||||
<label for="timezone" class="dropdown-title">{{t "Time zone" }}</label>
|
||||
|
@ -93,10 +93,10 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "translate_emoticons"
|
||||
"is_checked" page_params.translate_emoticons
|
||||
"label" settings_label.translate_emoticons}}
|
||||
{{> settings_checkbox
|
||||
setting_name="translate_emoticons"
|
||||
is_checked=page_params.translate_emoticons
|
||||
label=settings_label.translate_emoticons}}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div id="emoji-settings" data-name="emoji-settings" class="settings-section {{#if can_add_emojis}}can-edit{{/if}}">
|
||||
<div class="emoji-settings-tip-container">
|
||||
{{partial "settings/emoji_settings_tip"}}
|
||||
{{> emoji_settings_tip}}
|
||||
</div>
|
||||
<form class="form-horizontal admin-emoji-form {{#unless can_add_emojis}}hide{{/unless}}">
|
||||
<div class="add-new-emoji-box grey-box">
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
<p>{{t "Unless I say otherwise for a particular stream, I want:" }}</p>
|
||||
|
||||
{{#each notification_settings.stream_notification_settings}}
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" this
|
||||
"is_checked" (lookup ../page_params this)
|
||||
"label" (lookup ../settings_label this)
|
||||
"realm_push_notifications_enabled" (lookup ../page_params.realm_push_notifications_enabled)
|
||||
"push_notifications_tooltip" (lookup ../push_notification_tooltip this)}}
|
||||
{{> settings_checkbox
|
||||
setting_name=this
|
||||
is_checked=(lookup ../page_params this)
|
||||
label=(lookup ../settings_label this)
|
||||
realm_push_notifications_enabled=(lookup ../page_params.realm_push_notifications_enabled)
|
||||
push_notifications_tooltip=(lookup ../push_notification_tooltip this)}}
|
||||
{{/each}}
|
||||
|
||||
<p class="notification-settings-note">
|
||||
|
@ -26,12 +26,12 @@
|
|||
<div class="alert-notification" id="pm-mention-notify-settings-status"></div>
|
||||
|
||||
{{#each notification_settings.pm_mention_notification_settings}}
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" this
|
||||
"is_checked" (lookup ../page_params this)
|
||||
"label" (lookup ../settings_label this)
|
||||
"realm_push_notifications_enabled" (lookup ../page_params.realm_push_notifications_enabled)
|
||||
"push_notifications_tooltip" (lookup ../push_notification_tooltip this)}}
|
||||
{{> settings_checkbox
|
||||
setting_name=this
|
||||
is_checked=(lookup ../page_params this)
|
||||
label=(lookup ../settings_label this)
|
||||
realm_push_notifications_enabled=(lookup ../page_params.realm_push_notifications_enabled)
|
||||
push_notifications_tooltip=(lookup ../push_notification_tooltip this)}}
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
|
@ -43,10 +43,10 @@
|
|||
<h5>{{t "Desktop" }}</h5>
|
||||
|
||||
{{#each notification_settings.desktop_notification_settings}}
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" this
|
||||
"is_checked" (lookup ../page_params this)
|
||||
"label" (lookup ../settings_label this)}}
|
||||
{{> settings_checkbox
|
||||
setting_name=this
|
||||
is_checked=(lookup ../page_params this)
|
||||
label=(lookup ../settings_label this)}}
|
||||
{{/each}}
|
||||
|
||||
<label for="notification_sound">
|
||||
|
@ -70,21 +70,21 @@
|
|||
<h5>{{t "Mobile" }}</h5>
|
||||
|
||||
{{#each notification_settings.mobile_notification_settings}}
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" this
|
||||
"is_checked" (lookup ../page_params this)
|
||||
"label" (lookup ../settings_label this)
|
||||
"realm_push_notifications_enabled" (lookup ../page_params.realm_push_notifications_enabled)
|
||||
"push_notifications_tooltip" (lookup ../push_notification_tooltip this)}}
|
||||
{{> settings_checkbox
|
||||
setting_name=this
|
||||
is_checked=(lookup ../page_params this)
|
||||
label=(lookup ../settings_label this)
|
||||
realm_push_notifications_enabled=(lookup ../page_params.realm_push_notifications_enabled)
|
||||
push_notifications_tooltip=(lookup ../push_notification_tooltip this)}}
|
||||
{{/each}}
|
||||
|
||||
<h5>{{t "Email" }}</h5>
|
||||
|
||||
{{#each notification_settings.email_notification_settings}}
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" this
|
||||
"is_checked" (lookup ../page_params this)
|
||||
"label" (lookup ../settings_label this)}}
|
||||
{{> settings_checkbox
|
||||
setting_name=this
|
||||
is_checked=(lookup ../page_params this)
|
||||
label=(lookup ../settings_label this)}}
|
||||
{{/each}}
|
||||
|
||||
</div>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div id="org-org-join" class="org-subsection-parent">
|
||||
<div class="subsection-header">
|
||||
<h3>{{t "Joining the organization" }}</h3>
|
||||
{{ partial "settings/settings_save_discard_widget" "section_name" "org-join" }}
|
||||
{{> settings_save_discard_widget section_name="org-join" }}
|
||||
</div>
|
||||
<div class="m-10 inline-block organization-permissions-parent">
|
||||
<div class="input-group">
|
||||
|
@ -36,33 +36,33 @@
|
|||
<div id="org-user-identity" class="org-subsection-parent">
|
||||
<div class="subsection-header">
|
||||
<h3>{{t "User identity" }}</h3>
|
||||
{{ partial "settings/settings_save_discard_widget" "section_name" "user-identity" }}
|
||||
{{> settings_save_discard_widget section_name="user-identity" }}
|
||||
</div>
|
||||
<div class="inline-block organization-permissions-parent">
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "realm_name_changes_disabled"
|
||||
"prefix" "id_"
|
||||
"is_checked" realm_name_changes_disabled
|
||||
"label" admin_settings_label.realm_name_changes_disabled}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_name_changes_disabled"
|
||||
prefix="id_"
|
||||
is_checked=realm_name_changes_disabled
|
||||
label=admin_settings_label.realm_name_changes_disabled}}
|
||||
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "realm_email_changes_disabled"
|
||||
"prefix" "id_"
|
||||
"is_checked" realm_email_changes_disabled
|
||||
"label" admin_settings_label.realm_email_changes_disabled}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_email_changes_disabled"
|
||||
prefix="id_"
|
||||
is_checked=realm_email_changes_disabled
|
||||
label=admin_settings_label.realm_email_changes_disabled}}
|
||||
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "realm_avatar_changes_disabled"
|
||||
"prefix" "id_"
|
||||
"is_checked" realm_avatar_changes_disabled
|
||||
"label" admin_settings_label.realm_avatar_changes_disabled}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_avatar_changes_disabled"
|
||||
prefix="id_"
|
||||
is_checked=realm_avatar_changes_disabled
|
||||
label=admin_settings_label.realm_avatar_changes_disabled}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="org-other-permissions" class="org-subsection-parent">
|
||||
<div class="subsection-header">
|
||||
<h3>{{t "Other permissions" }}</h3>
|
||||
{{ partial "settings/settings_save_discard_widget" "section_name" "other-permissions" }}
|
||||
{{> settings_save_discard_widget section_name="other-permissions" }}
|
||||
</div>
|
||||
<div class="m-10 inline-block organization-permissions-parent">
|
||||
<div class="input-group">
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<i class="fa fa-question-circle-o" aria-hidden="true"></i>
|
||||
</a>
|
||||
</h3>
|
||||
{{ partial "settings/settings_save_discard_widget" "section_name" "org-profile" }}
|
||||
{{> settings_save_discard_widget section_name="org-profile" }}
|
||||
</div>
|
||||
|
||||
<div class="organization-settings-parent">
|
||||
|
@ -116,7 +116,7 @@
|
|||
{{t 'Deactivate organization' }}
|
||||
</button>
|
||||
</div>
|
||||
{{ partial "settings/deactivate_realm_modal"}}
|
||||
{{> deactivate_realm_modal}}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<i class="fa fa-question-circle-o" aria-hidden="true"></i>
|
||||
</a>
|
||||
</h3>
|
||||
{{ partial "settings/settings_save_discard_widget" "section_name" "msg-editing" }}
|
||||
{{> settings_save_discard_widget section_name="msg-editing" }}
|
||||
</div>
|
||||
<div class="inline-block organization-settings-parent">
|
||||
<div class="input-group">
|
||||
|
@ -32,17 +32,17 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "realm_allow_community_topic_editing"
|
||||
"prefix" "id_"
|
||||
"is_checked" realm_allow_community_topic_editing
|
||||
"label" admin_settings_label.realm_allow_community_topic_editing}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_allow_community_topic_editing"
|
||||
prefix="id_"
|
||||
is_checked=realm_allow_community_topic_editing
|
||||
label=admin_settings_label.realm_allow_community_topic_editing}}
|
||||
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "realm_allow_edit_history"
|
||||
"prefix" "id_"
|
||||
"is_checked" realm_allow_edit_history
|
||||
"label" admin_settings_label.realm_allow_edit_history}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_allow_edit_history"
|
||||
prefix="id_"
|
||||
is_checked=realm_allow_edit_history
|
||||
label=admin_settings_label.realm_allow_edit_history}}
|
||||
|
||||
<div class="input-group">
|
||||
<label for="realm_msg_delete_limit_setting" class="dropdown-title">
|
||||
|
@ -72,20 +72,20 @@
|
|||
<div id="org-notifications" class="org-subsection-parent">
|
||||
<div class="subsection-header">
|
||||
<h3>{{t "Notifications" }}</h3>
|
||||
{{ partial "settings/settings_save_discard_widget" "section_name" "notifications" }}
|
||||
{{> settings_save_discard_widget section_name="notifications" }}
|
||||
</div>
|
||||
<div class="inline-block organization-settings-parent">
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "realm_send_welcome_emails"
|
||||
"prefix" "id_"
|
||||
"is_checked" realm_send_welcome_emails
|
||||
"label" admin_settings_label.realm_send_welcome_emails}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_send_welcome_emails"
|
||||
prefix="id_"
|
||||
is_checked=realm_send_welcome_emails
|
||||
label=admin_settings_label.realm_send_welcome_emails}}
|
||||
{{#if settings_send_digest_emails }}
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "realm_digest_emails_enabled"
|
||||
"prefix" "id_"
|
||||
"is_checked" realm_digest_emails_enabled
|
||||
"label" admin_settings_label.realm_digest_emails_enabled}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_digest_emails_enabled"
|
||||
prefix="id_"
|
||||
is_checked=realm_digest_emails_enabled
|
||||
label=admin_settings_label.realm_digest_emails_enabled}}
|
||||
{{/if}}
|
||||
<div class="input-group">
|
||||
<label for="realm_digest_weekday" class="dropdown-title">{{t "Day of the week to send digests" }}</label>
|
||||
|
@ -152,7 +152,7 @@
|
|||
<div id="org-user-defaults" class="org-subsection-parent">
|
||||
<div class="subsection-header">
|
||||
<h3>{{t "Default user settings" }}</h3>
|
||||
{{ partial "settings/settings_save_discard_widget" "section_name" "user-defaults" }}
|
||||
{{> settings_save_discard_widget section_name="user-defaults" }}
|
||||
</div>
|
||||
<p>{{t "Default settings for new users joining this organization." }}</p>
|
||||
<div class="inline-block organization-settings-parent">
|
||||
|
@ -164,18 +164,18 @@
|
|||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "realm_default_twenty_four_hour_time"
|
||||
"prefix" "id_"
|
||||
"is_checked" realm_default_twenty_four_hour_time
|
||||
"label" admin_settings_label.realm_default_twenty_four_hour_time}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_default_twenty_four_hour_time"
|
||||
prefix="id_"
|
||||
is_checked=realm_default_twenty_four_hour_time
|
||||
label=admin_settings_label.realm_default_twenty_four_hour_time}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="org-other-settings" class="org-subsection-parent">
|
||||
<div class="subsection-header">
|
||||
<h3>{{t "Other settings" }}</h3>
|
||||
{{ partial "settings/settings_save_discard_widget" "section_name" "other-settings" }}
|
||||
{{> settings_save_discard_widget section_name="other-settings" }}
|
||||
</div>
|
||||
<div class="inline-block organization-settings-parent">
|
||||
<div class="input-group">
|
||||
|
@ -227,11 +227,11 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "realm_message_content_allowed_in_email_notifications"
|
||||
"prefix" "id_"
|
||||
"is_checked" realm_message_content_allowed_in_email_notifications
|
||||
"label" admin_settings_label.realm_message_content_allowed_in_email_notifications}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_message_content_allowed_in_email_notifications"
|
||||
prefix="id_"
|
||||
is_checked=realm_message_content_allowed_in_email_notifications
|
||||
label=admin_settings_label.realm_message_content_allowed_in_email_notifications}}
|
||||
|
||||
{{#if false}}
|
||||
<div class="input-group">
|
||||
|
@ -245,26 +245,26 @@
|
|||
value="{{ realm_message_retention_days }}"/>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "realm_mandatory_topics"
|
||||
"prefix" "id_"
|
||||
"is_checked" realm_mandatory_topics
|
||||
"label" admin_settings_label.realm_mandatory_topics}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_mandatory_topics"
|
||||
prefix="id_"
|
||||
is_checked=realm_mandatory_topics
|
||||
label=admin_settings_label.realm_mandatory_topics}}
|
||||
|
||||
{{#if server_inline_image_preview}}
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "realm_inline_image_preview"
|
||||
"prefix" "id_"
|
||||
"is_checked" realm_inline_image_preview
|
||||
"label" admin_settings_label.realm_inline_image_preview}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_inline_image_preview"
|
||||
prefix="id_"
|
||||
is_checked=realm_inline_image_preview
|
||||
label=admin_settings_label.realm_inline_image_preview}}
|
||||
{{/if}}
|
||||
|
||||
{{#if server_inline_url_embed_preview}}
|
||||
{{partial "settings/settings_checkbox"
|
||||
"setting_name" "realm_inline_url_embed_preview"
|
||||
"prefix" "id_"
|
||||
"is_checked" realm_inline_url_embed_preview
|
||||
"label" admin_settings_label.realm_inline_url_embed_preview}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_inline_url_embed_preview"
|
||||
prefix="id_"
|
||||
is_checked=realm_inline_url_embed_preview
|
||||
label=admin_settings_label.realm_inline_url_embed_preview}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
<div id="settings-change-box" class="new-style">
|
||||
{{ partial "settings/account_settings" }}
|
||||
{{> settings/account_settings }}
|
||||
|
||||
{{ partial "settings/display_settings" }}
|
||||
{{> settings/display_settings }}
|
||||
|
||||
{{ partial "settings/notification_settings" }}
|
||||
{{> settings/notification_settings }}
|
||||
|
||||
{{ partial "settings/bot_settings" }}
|
||||
{{> settings/bot_settings }}
|
||||
|
||||
{{ partial "settings/alert_word_settings" }}
|
||||
{{> settings/alert_word_settings }}
|
||||
|
||||
{{ partial "settings/attachments_settings" }}
|
||||
{{> settings/attachments_settings }}
|
||||
|
||||
{{ partial "settings/muted_topics_settings" }}
|
||||
{{> settings/muted_topics_settings }}
|
||||
</div>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<div class="messagebox {{#if next_is_same_sender}}next_is_same_sender{{/if}}"
|
||||
{{#if msg/is_stream}}style="box-shadow: inset 2px 0px 0px 0px {{background_color}}, -1px 0px 0px 0px {{background_color}};"{{/if}}>
|
||||
<div class="messagebox-content">
|
||||
{{partial "message_body"}}
|
||||
{{> message_body}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
{{t 'These settings are explained in detail in the <a target="_blank" href="/help/stream-permissions">help center</a>.'}}
|
||||
</div>
|
||||
|
||||
{{ partial "stream_types" "is_public" true }}
|
||||
{{> stream_types is_public=true }}
|
||||
|
||||
<div id="announce-new-stream">
|
||||
<label class="checkbox">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<span id="stream_sidebar_privacy_swatch_{{id}}" class="stream-privacy filter-icon" style="color: {{color}}">
|
||||
{{! This controls whether the swatchnext to streams in the left sidebar has a lock icon. }}
|
||||
{{ partial "stream_privacy" }}
|
||||
{{> stream_privacy }}
|
||||
</span>
|
||||
|
||||
<a href="{{uri}}" class="stream-name">{{name}}</a>
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
<path d="M448,71.9c-17.3-13.4-41.5-9.3-54.1,9.1L214,344.2l-99.1-107.3c-14.6-16.6-39.1-17.4-54.7-1.8 c-15.6,15.5-16.4,41.6-1.7,58.1c0,0,120.4,133.6,137.7,147c17.3,13.4,41.5,9.3,54.1-9.1l206.3-301.7 C469.2,110.9,465.3,85.2,448,71.9z"/>
|
||||
</svg>
|
||||
</div>
|
||||
{{ partial "subscription_setting_icon" }}
|
||||
{{> subscription_setting_icon }}
|
||||
<div class="sub-info-box">
|
||||
<div class="top-bar">
|
||||
<div class="stream-name">{{name}}</div>
|
||||
<div class="subscriber-count" data-toggle="tooltip" title="{{t 'Subscriber count' }}">
|
||||
{{partial "subscription_count"}}
|
||||
{{> subscription_count}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-bar">
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
</div>
|
||||
<div class="subscription-type">
|
||||
<div class="subscription-type-text">
|
||||
{{partial "subscription_type"}}
|
||||
{{> subscription_type}}
|
||||
</div>
|
||||
<a class="change-stream-privacy" {{#unless can_change_stream_permissions}}style="display: none;"{{/unless}}>[{{t "Change" }}]</a>
|
||||
</div>
|
||||
|
@ -51,16 +51,16 @@
|
|||
<ul class="grey-box">
|
||||
{{#each settings}}
|
||||
<li>
|
||||
{{partial "stream_settings_checkbox"
|
||||
"setting_name" name
|
||||
"prefix" "sub_"
|
||||
"suffix" "_setting"
|
||||
"is_checked" value
|
||||
"is_muted" (lookup ../sub "is_muted")
|
||||
"stream_id" (lookup ../sub "stream_id")
|
||||
"notification_setting" is_notification_setting
|
||||
"realm_setting_disabled" (lookup ../realm_settings name)
|
||||
"label" label}}
|
||||
{{> stream_settings_checkbox
|
||||
setting_name=name
|
||||
prefix="sub_"
|
||||
suffix="_setting"
|
||||
is_checked=value
|
||||
is_muted=(lookup ../sub "is_muted")
|
||||
stream_id=(lookup ../sub "stream_id")
|
||||
notification_setting=is_notification_setting
|
||||
realm_setting_disabled=(lookup ../realm_settings name)
|
||||
label=label}}
|
||||
</li>
|
||||
{{/each}}
|
||||
<li>
|
||||
|
@ -80,7 +80,7 @@
|
|||
</div>
|
||||
{{#with sub}}
|
||||
<div class="subscription-members-setting">
|
||||
{{partial "subscription_members"}}
|
||||
{{> subscription_members}}
|
||||
</div>
|
||||
{{/with}}
|
||||
</div>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<button type="button" class="close close-privacy-modal" data-dismiss="modal" aria-label="{{t 'Close' }}"><span aria-hidden="true">×</span></button>
|
||||
<h3 id="stream_privacy_modal_label">{{t "Change stream permissions for #" }}{{ stream_name }}<span class="email"></span></h3>
|
||||
</div>
|
||||
{{ partial "stream_types" }}
|
||||
{{> stream_types }}
|
||||
<div class="modal-footer">
|
||||
<button class="button rounded close-privacy-modal" data-dismiss="modal">{{t "Cancel" }}</button>
|
||||
<button class="button rounded btn-danger" id="change-stream-privacy-button"
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
<div class="settings" data-simplebar data-simplebar-auto-hide="false">
|
||||
{{!-- edit stream here --}}
|
||||
</div>
|
||||
{{ partial "stream_creation_form" }}
|
||||
{{> stream_creation_form }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{{#each subscriptions}}
|
||||
{{partial "subscription"}}
|
||||
{{> subscription}}
|
||||
{{/each}}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{! Typing Notifications }}
|
||||
<ul id="typing_notification_list">
|
||||
{{#each users}}
|
||||
{{partial "typing_notification"}}
|
||||
{{> typing_notification}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{! User Presence rows }}
|
||||
{{#each users}}
|
||||
{{partial "user_presence_row"}}
|
||||
{{> user_presence_row}}
|
||||
{{/each}}
|
||||
|
|
|
@ -61,7 +61,7 @@ def tokenize(text):
|
|||
return looking_at("{#")
|
||||
|
||||
def looking_at_handlebarpartial() -> bool:
|
||||
return looking_at("{{partial")
|
||||
return looking_at("{{>")
|
||||
|
||||
def looking_at_html_start():
|
||||
# type: () -> bool
|
||||
|
|
|
@ -209,7 +209,7 @@ BAD_HTML8 = """
|
|||
<div class="anything">{{{test}}}</div>
|
||||
{{/if}}
|
||||
{{#if foobar2}}
|
||||
{{partial "teststuff"}}
|
||||
{{> teststuff}}
|
||||
{{/if}}
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
|
@ -222,7 +222,7 @@ GOOD_HTML8 = """
|
|||
<div class="anything">{{{test}}}</div>
|
||||
{{/if}}
|
||||
{{#if foobar2}}
|
||||
{{partial "teststuff"}}
|
||||
{{> teststuff}}
|
||||
{{/if}}
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
|
@ -422,19 +422,19 @@ GOOD_HTML15 = """
|
|||
|
||||
BAD_HTML16 = """
|
||||
<div>
|
||||
{{partial "settings_checkbox"
|
||||
"setting_name" "realm_name_in_notifications"
|
||||
"is_checked" page_params.realm_name_in_notifications
|
||||
"label" settings_label.realm_name_in_notifications}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_name_in_notifications"
|
||||
is_checked=page_params.realm_name_in_notifications
|
||||
label=settings_label.realm_name_in_notifications}}
|
||||
</div>
|
||||
"""
|
||||
|
||||
GOOD_HTML16 = """
|
||||
<div>
|
||||
{{partial "settings_checkbox"
|
||||
"setting_name" "realm_name_in_notifications"
|
||||
"is_checked" page_params.realm_name_in_notifications
|
||||
"label" settings_label.realm_name_in_notifications}}
|
||||
{{> settings_checkbox
|
||||
setting_name="realm_name_in_notifications"
|
||||
is_checked=page_params.realm_name_in_notifications
|
||||
label=settings_label.realm_name_in_notifications}}
|
||||
</div>
|
||||
"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue