From 36475daba7b486b8c5c8362718f2e4df101d30c4 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 22 Mar 2023 02:12:15 -0700 Subject: [PATCH] templates: Remove references to undefined fields. Signed-off-by: Anders Kaseorg --- web/templates/compose.hbs | 1 - web/templates/confirm_dialog/confirm_deactivate_user.hbs | 2 +- web/templates/empty_feed_notice.hbs | 2 +- web/templates/navbar_alerts/navbar_alert_wrapper.hbs | 2 +- web/templates/recipient_row.hbs | 2 +- web/templates/settings/api_key_modal.hbs | 2 +- web/templates/settings/language_selection_widget.hbs | 2 +- web/templates/settings/notification_settings.hbs | 1 - web/templates/settings/settings_checkbox.hbs | 4 ++-- web/templates/single_message.hbs | 2 +- web/templates/status_emoji.hbs | 2 ++ web/templates/stream_settings/stream_types.hbs | 3 +-- 12 files changed, 12 insertions(+), 13 deletions(-) diff --git a/web/templates/compose.hbs b/web/templates/compose.hbs index dacdedabd7..39066d1741 100644 --- a/web/templates/compose.hbs +++ b/web/templates/compose.hbs @@ -52,7 +52,6 @@
- {{ csrf_input }}
diff --git a/web/templates/confirm_dialog/confirm_deactivate_user.hbs b/web/templates/confirm_dialog/confirm_deactivate_user.hbs index 1be9751fb3..b3217c9daa 100644 --- a/web/templates/confirm_dialog/confirm_deactivate_user.hbs +++ b/web/templates/confirm_dialog/confirm_deactivate_user.hbs @@ -20,7 +20,7 @@

diff --git a/web/templates/empty_feed_notice.hbs b/web/templates/empty_feed_notice.hbs index 1937429b20..8f153505a4 100644 --- a/web/templates/empty_feed_notice.hbs +++ b/web/templates/empty_feed_notice.hbs @@ -1,6 +1,6 @@

{{ title }}

- {{#if (or search_data.query_words search.topic_query search_data.stream_query)}} + {{#if search_data}}
{{#if search_data.has_stop_word}}{{t "Some common words were excluded from your search." }}
{{/if}}{{t "You searched for:" }} {{#if search_data.stream_query}} diff --git a/web/templates/navbar_alerts/navbar_alert_wrapper.hbs b/web/templates/navbar_alerts/navbar_alert_wrapper.hbs index 2a44aac2b9..3b065fba0b 100644 --- a/web/templates/navbar_alerts/navbar_alert_wrapper.hbs +++ b/web/templates/navbar_alerts/navbar_alert_wrapper.hbs @@ -1,4 +1,4 @@ -
+
{{{rendered_alert_content_html}}} ×
diff --git a/web/templates/recipient_row.hbs b/web/templates/recipient_row.hbs index 42e5d4950b..2afcd125d6 100644 --- a/web/templates/recipient_row.hbs +++ b/web/templates/recipient_row.hbs @@ -38,7 +38,7 @@ - + {{! exterior links (e.g. to a trac ticket) }} diff --git a/web/templates/settings/api_key_modal.hbs b/web/templates/settings/api_key_modal.hbs index 53ba4f686a..1546c26d52 100644 --- a/web/templates/settings/api_key_modal.hbs +++ b/web/templates/settings/api_key_modal.hbs @@ -36,7 +36,7 @@
- {{t "Download .zuliprc" }} + {{t "Download .zuliprc" }}
diff --git a/web/templates/settings/language_selection_widget.hbs b/web/templates/settings/language_selection_widget.hbs index 6ea9a76c4d..1ac5b772af 100644 --- a/web/templates/settings/language_selection_widget.hbs +++ b/web/templates/settings/language_selection_widget.hbs @@ -6,7 +6,7 @@ {{/if}}
diff --git a/web/templates/settings/notification_settings.hbs b/web/templates/settings/notification_settings.hbs index 41dcf39055..266216393d 100644 --- a/web/templates/settings/notification_settings.hbs +++ b/web/templates/settings/notification_settings.hbs @@ -42,7 +42,6 @@ {{#unless for_realm_settings}} - {{> ../settings/stream_specific_notification_row }} {{/unless}} diff --git a/web/templates/settings/settings_checkbox.hbs b/web/templates/settings/settings_checkbox.hbs index 30f3e24c00..3109b10d1b 100644 --- a/web/templates/settings/settings_checkbox.hbs +++ b/web/templates/settings/settings_checkbox.hbs @@ -2,10 +2,10 @@
-