mirror of https://github.com/zulip/zulip.git
tooltips: Add hotkey hints support to keyboard shortcuts button.
This commits adds hotkey hints to the keyboard shortcuts button located in the right sidebar, bellow the user list view.
This commit is contained in:
parent
26fc108e16
commit
59bc9715e3
|
@ -27,8 +27,11 @@
|
||||||
<a id="invite-user-link" href="#invite"><i class="fa fa-user-plus" aria-hidden="true"></i>{{t 'Invite more users' }}</a>
|
<a id="invite-user-link" href="#invite"><i class="fa fa-user-plus" aria-hidden="true"></i>{{t 'Invite more users' }}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<a id="sidebar-keyboard-shortcuts" data-overlay-trigger="keyboard-shortcuts" class="hidden-for-spectators">
|
<a id="sidebar-keyboard-shortcuts" data-overlay-trigger="keyboard-shortcuts" class="hidden-for-spectators">
|
||||||
<i class="fa fa-keyboard-o fa-2x tippy-zulip-tooltip" id="keyboard-icon" data-tooltip-template-id="keyboard-icon-tooltip"></i>
|
<i class="fa fa-keyboard-o fa-2x tippy-zulip-tooltip" id="keyboard-icon" data-tooltip-template-id="keyboard-icon-tooltip-template"></i>
|
||||||
<template id="keyboard-icon-tooltip">{{t 'Keyboard shortcuts' }} <span class="hotkey-hint">(?)</span></template>
|
<template id="keyboard-icon-tooltip-template">
|
||||||
|
{{t 'Keyboard shortcuts' }}
|
||||||
|
{{hotkey_hints "?"}}
|
||||||
|
</template>
|
||||||
</a>
|
</a>
|
||||||
<div class="only-visible-for-spectators">
|
<div class="only-visible-for-spectators">
|
||||||
<div class="realm-description">
|
<div class="realm-description">
|
||||||
|
|
Loading…
Reference in New Issue