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.

left_sidebar: Add informational tooltips to condensed icons.

Karl Stolley9535b5dbe006
diff --git a/web/templates/left_sidebar.hbs b/web/templates/left_sidebar.hbs
index e091c25c55e..e68e057d5a1 100644
--- a/web/templates/left_sidebar.hbs
+++ b/web/templates/left_sidebar.hbs
@@ -28,7 +28,7 @@
</a>
</li>
<li class="top_left_mentions left-sidebar-navigation-condensed-item">
- <a class="left-sidebar-navigation-icon-container" href="#narrow/is/mentioned">
+ <a href="#narrow/is/mentioned" class="tippy-left-sidebar-tooltip left-sidebar-navigation-icon-container" data-tooltip-template-id="mentions-tooltip-template">
<span class="filter-icon">
<i class="fa fa-at" aria-hidden="true"></i>
</span>
@@ -36,7 +36,7 @@
</a>
</li>
<li class="top_left_starred_messages left-sidebar-navigation-condensed-item">
- <a class="left-sidebar-navigation-icon-container" href="#narrow/is/starred">
+ <a href="#narrow/is/starred" class="tippy-left-sidebar-tooltip left-sidebar-navigation-icon-container" data-tooltip-template-id="starred-tooltip-template">
<span class="filter-icon">
<i class="zulip-icon zulip-icon-star-filled" aria-hidden="true"></i>
</span>
diff --git a/web/templates/tooltip_templates.hbs b/web/templates/tooltip_templates.hbs
index ea75cec12b2..f93164ede74 100644
--- a/web/templates/tooltip_templates.hbs
+++ b/web/templates/tooltip_templates.hbs
@@ -91,6 +91,12 @@
{{t 'All direct messages' }}
{{tooltip_hotkey_hints "Shift" "P"}}
</template>
+<template id="mentions-tooltip-template">
+ {{t 'Mentions' }}
+</template>
+<template id="starred-tooltip-template">
+ {{t 'Starred messages' }}
+</template>
<template id="filter-streams-tooltip-template">
{{t 'Filter streams' }}
{{tooltip_hotkey_hints "Q"}}