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.

tooltips: Add tippy tooltips for all_messages, recent_topics, and drafts.

Hardik Dharmanibfdd9adaa4e9
diff --git a/web/templates/left_sidebar.hbs b/web/templates/left_sidebar.hbs
index be28ee89d86..41b8d9fda23 100644
--- a/web/templates/left_sidebar.hbs
+++ b/web/templates/left_sidebar.hbs
@@ -2,7 +2,7 @@
<div class="narrows_panel">
<ul id="global_filters" class="filters">
{{!-- Special-case this link so we don't actually go to page top. --}}
- <li class="top_left_all_messages top_left_row" title="{{t 'All messages' }} (a)">
+ <li class="top_left_all_messages top_left_row tippy-left-sidebar-tooltip" data-tooltip-template-id="all-message-tooltip-template">
<a href="#all_messages" class="home-link">
<span class="filter-icon">
<i class="fa fa-align-left" aria-hidden="true"></i>
@@ -11,9 +11,13 @@
<span>{{t 'All messages' }}</span>
<span class="unread_count"></span>
</a>
+ <template id="all-message-tooltip-template">
+ {{t 'All messages' }}
+ {{tooltip_hotkey_hints "A"}}
+ </template>
<span class="arrow all-messages-sidebar-menu-icon hidden-for-spectators"><i class="zulip-icon zulip-icon-ellipsis-v-solid" aria-hidden="true"></i></span>
</li>
- <li class="top_left_recent_topics top_left_row" title="{{t 'Recent conversations' }} (t)">
+ <li class="top_left_recent_topics top_left_row tippy-left-sidebar-tooltip" data-tooltip-template-id="recent-conversations-tooltip-template">
<a href="#recent">
<span class="filter-icon">
<i class="fa fa-clock-o" aria-hidden="true"></i>
@@ -21,6 +25,10 @@
{{~!-- squash whitespace --~}}
<span>{{t 'Recent conversations' }}</span>
</a>
+ <template id="recent-conversations-tooltip-template">
+ {{t 'Recent conversations' }}
+ {{tooltip_hotkey_hints "T"}}
+ </template>
</li>
<li class="top_left_mentions top_left_row hidden-for-spectators">
<a href="#narrow/is/mentioned">
@@ -43,7 +51,7 @@
</a>
<span class="arrow starred-messages-sidebar-menu-icon"><i class="zulip-icon zulip-icon-ellipsis-v-solid" aria-hidden="true"></i></span>
</li>
- <li class="top_left_drafts top_left_row hidden-for-spectators" title="{{t 'Drafts' }} (d)">
+ <li class="top_left_drafts top_left_row hidden-for-spectators tippy-left-sidebar-tooltip" data-tooltip-template-id="drafts-tooltip-template">
<a href="#drafts">
<span class="filter-icon">
<i class="fa fa-pencil" aria-hidden="true"></i>
@@ -52,6 +60,10 @@
<span>{{t 'Drafts' }}</span>
<span class="unread_count"></span>
</a>
+ <template id="drafts-tooltip-template">
+ {{t 'Drafts' }}
+ {{tooltip_hotkey_hints "D"}}
+ </template>
<span class="arrow drafts-sidebar-menu-icon"><i class="zulip-icon zulip-icon-ellipsis-v-solid" aria-hidden="true"></i></span>
</li>
</ul>