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 hotkey hints support to search people filter in sidebar.

sayamsamal78ae5e9526a0
diff --git a/static/templates/right_sidebar.hbs b/static/templates/right_sidebar.hbs
index 008220dcc77..831fe3621fc 100644
--- a/static/templates/right_sidebar.hbs
+++ b/static/templates/right_sidebar.hbs
@@ -2,15 +2,19 @@
<div class="right-sidebar-items">
<div id="user-list">
<div id="userlist-header">
- <h4 class='sidebar-title'
- id='userlist-title' data-tippy-content="{{t 'Search people' }} (w)">
+ <h4 class='sidebar-title' data-tooltip-template-id="search-people-tooltip-template"
+ id='userlist-title'>
{{t 'USERS' }}
</h4>
<i id="user_filter_icon" class="fa fa-search"
aria-hidden="true" aria-label="{{t 'Search people' }}"
- data-tippy-content="{{t 'Search people' }} (w)">
+ data-tooltip-template-id="search-people-tooltip-template">
</i>
</div>
+ <template id="search-people-tooltip-template">
+ {{t 'Search people' }}
+ {{hotkey_hints "W"}}
+ </template>
<div class="input-append notdisplayed" id="user_search_section">
<input class="user-list-filter home-page-input" type="text" autocomplete="off" placeholder="{{t 'Search people' }}" />
<button type="button" class="btn clear_search_button" id="clear_search_people_button">