Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stream_settings: Move tooltip from help icon to label and checkbox.

Sayam Samal14bb8708c612
diff --git a/web/templates/stream_settings/stream_settings_checkbox.hbs b/web/templates/stream_settings/stream_settings_checkbox.hbs
index 9c878ee2a73..b1cdac90816 100644
--- a/web/templates/stream_settings/stream_settings_checkbox.hbs
+++ b/web/templates/stream_settings/stream_settings_checkbox.hbs
@@ -3,24 +3,19 @@
class="sub_setting_checkbox
{{#if disabled_realm_setting}}control-label-disabled
{{else if notification_setting}}sub_notification_setting{{/if}} new-style">
- <label class="checkbox">
- <input id="{{setting_name}}_{{stream_id}}" name="{{setting_name}}"
- class="sub_setting_control" type="checkbox"
- {{#if is_checked}}checked{{/if}}
- {{#if is_disabled}}disabled="disabled"{{/if}} />
- <span></span>
- </label>
- <label class="inline" for="{{setting_name}}_{{stream_id}}">
- {{label}}
- {{#if (eq setting_name "is_muted")}}
- {{> ../help_link_widget link="/help/mute-a-stream" }}
- {{/if}}
- </label>
-
- {{!-- 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-tooltip-template-id="mobile-push-notification-tooltip-template">
- </i>
- {{/if}}
+ <span {{#if (and disabled_realm_setting (eq setting_name "push_notifications"))}}class="tippy-zulip-tooltip" data-tooltip-template-id="mobile-push-notification-tooltip-template"{{/if}}>
+ <label class="checkbox">
+ <input id="{{setting_name}}_{{stream_id}}" name="{{setting_name}}"
+ class="sub_setting_control" type="checkbox"
+ {{#if is_checked}}checked{{/if}}
+ {{#if is_disabled}}disabled="disabled"{{/if}} />
+ <span></span>
+ </label>
+ <label class="inline" for="{{setting_name}}_{{stream_id}}">
+ {{label}}
+ {{#if (eq setting_name "is_muted")}}
+ {{> ../help_link_widget link="/help/mute-a-stream" }}
+ {{/if}}
+ </label>
+ </span>
</div>