tooltips: Use tippy for `gear-menu` icon with hotkey hint `G`.

Fixes part of #24311
This commit is contained in:
Hardik Dharmani 2023-04-09 02:23:57 +05:30 committed by Tim Abbott
parent 7785fb2948
commit 892bd38062
1 changed files with 5 additions and 1 deletions

View File

@ -1,8 +1,12 @@
<ul class="nav" role="navigation">
<li class="dropdown actual-dropdown-menu" id="gear-menu">
<a id="settings-dropdown" tabindex="0" role="button" class="dropdown-toggle" data-target="nada" data-toggle="dropdown" title="{{t 'Menu' }} (g)">
<a id="settings-dropdown" tabindex="0" role="button" class="dropdown-toggle tippy-zulip-delayed-tooltip" data-target="nada" data-toggle="dropdown" data-tooltip-template-id="gear-menu-tooltip-template">
<i class="fa fa-cog settings-dropdown-cog" aria-hidden="true"></i>
</a>
<template id="gear-menu-tooltip-template">
{{t 'Menu' }}
{{tooltip_hotkey_hints "G"}}
</template>
<ul class="dropdown-menu" role="menu" aria-labelledby="settings-dropdown">
<li class="org-info org-name">{{realm_name}}</li>
<li class="org-info org-url">{{realm_url}}</li>