templates: Remove references to undefined fields.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-03-22 02:12:15 -07:00
committed by Tim Abbott
parent a1f530fcc0
commit 36475daba7
12 changed files with 12 additions and 13 deletions

View File

@@ -52,7 +52,6 @@
<div id="compose_banners"></div> <div id="compose_banners"></div>
<div class="composition-area"> <div class="composition-area">
<form id="send_message_form" action="/json/messages" method="post"> <form id="send_message_form" action="/json/messages" method="post">
{{ csrf_input }}
<div class="compose_table"> <div class="compose_table">
<div id="compose_top"> <div id="compose_top">
<div id="compose_top_right" class="order-2"> <div id="compose_top_right" class="order-2">

View File

@@ -20,7 +20,7 @@
</p> </p>
<div class="new-style"> <div class="new-style">
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" class="send_email" data-key="{{ key }}" /> <input type="checkbox" class="send_email" />
<span></span> <span></span>
{{t "Notify this user by email?" }} {{t "Notify this user by email?" }}
</label> </label>

View File

@@ -1,6 +1,6 @@
<div class="empty_feed_notice"> <div class="empty_feed_notice">
<h4> {{ title }} </h4> <h4> {{ title }} </h4>
{{#if (or search_data.query_words search.topic_query search_data.stream_query)}} {{#if search_data}}
<div> <div>
{{#if search_data.has_stop_word}}{{t "Some common words were excluded from your search." }} <br/>{{/if}}{{t "You searched for:" }} {{#if search_data.has_stop_word}}{{t "Some common words were excluded from your search." }} <br/>{{/if}}{{t "You searched for:" }}
{{#if search_data.stream_query}} {{#if search_data.stream_query}}

View File

@@ -1,4 +1,4 @@
<div data-process="{{data_process}}" class="alert alert-info {{custom_class}}"> <div data-process="{{data_process}}" class="alert alert-info {{#if custom_class}}{{custom_class}}{{/if}}">
{{{rendered_alert_content_html}}} {{{rendered_alert_content_html}}}
<span class="close" data-dismiss="alert" aria-label="{{t 'Close' }}" role="button" tabindex=0>&times;</span> <span class="close" data-dismiss="alert" aria-label="{{t 'Close' }}" role="button" tabindex=0>&times;</span>
</div> </div>

View File

@@ -38,7 +38,7 @@
</span> </span>
<span class="recipient_bar_controls no-select"> <span class="recipient_bar_controls no-select">
<span class="topic_edit hidden-for-spectators"> <span class="topic_edit hidden-for-spectators">
<span class="topic_edit_form" id="{{id}}"></span> <span class="topic_edit_form"></span>
</span> </span>
{{! exterior links (e.g. to a trac ticket) }} {{! exterior links (e.g. to a trac ticket) }}

View File

@@ -36,7 +36,7 @@
</button> </button>
<div id="api_key_buttons"> <div id="api_key_buttons">
<button class="modal__btn dialog_submit_button" id="regenerate_api_key" aria-label="{{t 'Generate new API key' }}">{{t "Generate new API key" }}</button> <button class="modal__btn dialog_submit_button" id="regenerate_api_key" aria-label="{{t 'Generate new API key' }}">{{t "Generate new API key" }}</button>
<a class="modal__btn dialog_submit_button" id="download_zuliprc" download="{{zuliprc}}" tabindex="0">{{t "Download .zuliprc" }}</a> <a class="modal__btn dialog_submit_button" id="download_zuliprc" download="zuliprc" tabindex="0">{{t "Download .zuliprc" }}</a>
</div> </div>
</footer> </footer>
</div> </div>

View File

@@ -6,7 +6,7 @@
{{/if}} {{/if}}
</label> </label>
<button type="button" class="language_selection_button button rounded small" data-section="{{section_name}}"> <button type="button" class="language_selection_button button rounded small" data-section="{{section_name}}">
<span class="{{section_name}}" data-language-code="{{language_code}}">{{setting_value}}</span> <span class="{{section_name}}">{{setting_value}}</span>
<i class="fa fa-pencil"></i> <i class="fa fa-pencil"></i>
</button> </button>
</div> </div>

View File

@@ -42,7 +42,6 @@
</tbody> </tbody>
{{#unless for_realm_settings}} {{#unless for_realm_settings}}
<tbody id="stream-specific-notify-table"> <tbody id="stream-specific-notify-table">
{{> ../settings/stream_specific_notification_row }}
</tbody> </tbody>
{{/unless}} {{/unless}}
</table> </table>

View File

@@ -2,10 +2,10 @@
<div class="input-group {{#if is_disabled}}control-label-disabled{{/if}}"> <div class="input-group {{#if is_disabled}}control-label-disabled{{/if}}">
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" class="{{setting_name}} inline-block setting-widget prop-element" name="{{setting_name}}" data-setting-widget-type="boolean" <input type="checkbox" class="{{setting_name}} inline-block setting-widget prop-element" name="{{setting_name}}" data-setting-widget-type="boolean"
id="{{prefix}}{{setting_name}}" {{#if is_checked}}checked="checked"{{/if}} {{#if is_disabled}}disabled{{/if}} /> id="{{#if prefix}}{{prefix}}{{/if}}{{setting_name}}" {{#if is_checked}}checked="checked"{{/if}} {{#if is_disabled}}disabled{{/if}} />
<span></span> <span></span>
</label> </label>
<label for="{{prefix}}{{setting_name}}" class="inline {{setting_name}}_label" id="{{prefix}}{{setting_name}}_label"> <label for="{{#if prefix}}{{prefix}}{{/if}}{{setting_name}}" class="inline {{setting_name}}_label" id="{{#if prefix}}{{prefix}}{{/if}}{{setting_name}}_label">
{{label}} {{label}}
{{#if label_parens_text}} {{#if label_parens_text}}
(<i>{{label_parens_text}}</i>) (<i>{{label_parens_text}}</i>)

View File

@@ -1,5 +1,5 @@
<div zid="{{msg/id}}" id="{{table_name}}{{msg/id}}" <div zid="{{msg/id}}" id="{{table_name}}{{msg/id}}"
class="message_row{{^msg/is_stream}} private-message{{/msg/is_stream}}{{#include_sender}} include-sender{{/include_sender}}{{#if mention_classname}} {{mention_classname}}{{/if}}{{#msg.unread}} unread{{/msg.unread}} {{#if msg.locally_echoed}}local{{/if}} selectable_row" class="message_row{{#unless msg/is_stream}} private-message{{/unless}}{{#include_sender}} include-sender{{/include_sender}}{{#if mention_classname}} {{mention_classname}}{{/if}}{{#msg.unread}} unread{{/msg.unread}} {{#if msg.locally_echoed}}local{{/if}} selectable_row"
role="listitem"> role="listitem">
<div class="unread_marker"><div class="unread-marker-fill"></div></div> <div class="unread_marker"><div class="unread-marker-fill"></div></div>
{{#if want_date_divider}} {{#if want_date_divider}}

View File

@@ -1,3 +1,4 @@
{{#if .}}
{{#if emoji_alt_code}} {{#if emoji_alt_code}}
<span class="emoji_alt_code">&nbsp;:{{emoji_name}}:</span> <span class="emoji_alt_code">&nbsp;:{{emoji_name}}:</span>
{{else if still_url}} {{else if still_url}}
@@ -8,3 +9,4 @@
{{else if emoji_code}} {{else if emoji_code}}
<span class="emoji status_emoji emoji-{{emoji_code}}"></span> <span class="emoji status_emoji emoji-{{emoji_code}}"></span>
{{/if}} {{/if}}
{{/if}}

View File

@@ -74,8 +74,7 @@
<input type="text" autocomplete="off" <input type="text" autocomplete="off"
name="stream-message-retention-days" name="stream-message-retention-days"
class="stream-message-retention-days message-retention-setting-custom-input time-limit-custom-input" class="stream-message-retention-days message-retention-setting-custom-input time-limit-custom-input"
id="stream_message_retention_custom_input" id="stream_message_retention_custom_input" />
value="{{ stream_message_retention_days }}"/>
</div> </div>
</div> </div>
</div> </div>