mirror of https://github.com/zulip/zulip.git
settings: Migrate mobile notification tooltips to a common template.
This commit is contained in:
parent
15b3ad7466
commit
31cc47cbd7
|
@ -13,7 +13,7 @@
|
||||||
<th rowspan="2" width="14%" class="{{#if show_push_notifications_tooltip.push_notifications}}control-label-disabled{{/if}}">
|
<th rowspan="2" width="14%" class="{{#if show_push_notifications_tooltip.push_notifications}}control-label-disabled{{/if}}">
|
||||||
{{t "Mobile"}}
|
{{t "Mobile"}}
|
||||||
{{#if (not realm_push_notifications_enabled) }}
|
{{#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}}
|
{{/if}}
|
||||||
</th>
|
</th>
|
||||||
<th rowspan="2" width="14%">{{t "Email"}}</th>
|
<th rowspan="2" width="14%">{{t "Email"}}</th>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
{{!-- Tooltips for settings --}}
|
{{!-- Tooltips for settings --}}
|
||||||
{{#if (eq setting_name "push_notifications")}}
|
{{#if (eq setting_name "push_notifications")}}
|
||||||
<i class="fa fa-question-circle settings-info-icon {{#unless disabled_realm_setting}}hide{{/unless}} tippy-zulip-tooltip"
|
<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>
|
</i>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -204,3 +204,6 @@
|
||||||
{{t 'View stream' }}
|
{{t 'View stream' }}
|
||||||
{{tooltip_hotkey_hints "Shift" "V"}}
|
{{tooltip_hotkey_hints "Shift" "V"}}
|
||||||
</template>
|
</template>
|
||||||
|
<template id="mobile-push-notification-tooltip-template">
|
||||||
|
{{t 'Mobile push notifications are not configured on this server.' }}
|
||||||
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue