user_profile: Add tippy tooltips to edit pencil button.

This commit adds Tippy tooltips to the edit pencil button
in the user profile. Now, when a user opens another user's
profile, they will see the tooltip 'Manage user', and when
they open their own user profile, they will see the tooltip
'Edit profile'.
This commit is contained in:
palashb01 2023-09-09 18:54:27 +05:30 committed by Tim Abbott
parent 1c049ab5f4
commit db47f675f0
1 changed files with 2 additions and 2 deletions

View File

@ -14,11 +14,11 @@
<span class="user_profile_name">{{full_name}}</span>
{{#if is_me}}
<a href="/#settings/profile">
<i class="fa fa-edit user_profile_manage_own_edit_button" aria-hidden="true"></i>
<i class="fa fa-edit tippy-zulip-tooltip user_profile_manage_own_edit_button" data-tippy-content="{{t 'Edit profile' }}" aria-hidden="true"></i>
</a>
{{/if}}
{{#if can_manage_profile}}
<i class="fa fa-edit user_profile_manage_others_edit_button" aria-hidden="true"></i>
<i class="fa fa-edit tippy-zulip-tooltip user_profile_manage_others_edit_button" data-tippy-content="{{t 'Manage user' }}" aria-hidden="true"></i>
{{/if}}
</h1>
<button class="modal__close" aria-label="{{t 'Close modal' }}" data-micromodal-close></button>