mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user