Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Migrate mobile notification tooltips to a common template.
Sayam Samal31cc47cbd756
diff --git a/web/templates/settings/notification_settings.hbs b/web/templates/settings/notification_settings.hbsindex 63ffdd23531..55d1d1373ef 100644--- a/web/templates/settings/notification_settings.hbs+++ b/web/templates/settings/notification_settings.hbs@@ -13,7 +13,7 @@<th rowspan="2" width="14%" class="{{#if show_push_notifications_tooltip.push_notifications}}control-label-disabled{{/if}}">{{t "Mobile"}}{{#if (not realm_push_notifications_enabled) }}- <i class="fa fa-question-circle settings-info-icon tippy-zulip-tooltip" data-tippy-content="{{t 'Mobile push notifications are not configured on this server.' }}"></i>+ <i class="fa fa-question-circle settings-info-icon tippy-zulip-tooltip" data-tooltip-template-id="mobile-push-notification-tooltip-template"></i>{{/if}}</th><th rowspan="2" width="14%">{{t "Email"}}</th>diff --git a/web/templates/stream_settings/stream_settings_checkbox.hbs b/web/templates/stream_settings/stream_settings_checkbox.hbsindex ab203f86778..9c878ee2a73 100644--- a/web/templates/stream_settings/stream_settings_checkbox.hbs+++ b/web/templates/stream_settings/stream_settings_checkbox.hbs@@ -20,7 +20,7 @@{{!-- Tooltips for settings --}}{{#if (eq setting_name "push_notifications")}}<i class="fa fa-question-circle settings-info-icon {{#unless disabled_realm_setting}}hide{{/unless}} tippy-zulip-tooltip"- data-tippy-content="{{t 'Mobile push notifications are not configured on this server.' }}">+ data-tooltip-template-id="mobile-push-notification-tooltip-template"></i>{{/if}}</div>diff --git a/web/templates/tooltip_templates.hbs b/web/templates/tooltip_templates.hbsindex afa8d284455..7645a042191 100644--- a/web/templates/tooltip_templates.hbs+++ b/web/templates/tooltip_templates.hbs@@ -204,3 +204,6 @@{{t 'View stream' }}{{tooltip_hotkey_hints "Shift" "V"}}</template>+<template id="mobile-push-notification-tooltip-template">+ {{t 'Mobile push notifications are not configured on this server.' }}+</template>