2013-07-11 23:06:58 +02:00
{{! Contents of the "message info" popup }}
2018-02-27 20:40:07 +01:00
<ul class="nav nav-list actions_popover info_popover_actions" data-user-id=" {{ user_id }} ">
2017-02-15 21:07:21 +01:00
<div class="popover_info">
2019-02-17 02:10:42 +01:00
<li>
2017-05-12 20:17:17 +02:00
<b> {{ user_full_name }} </b>
2017-10-14 00:33:36 +02:00
{{ # if is_active }}
2017-10-16 05:40:09 +02:00
{{ # if is_bot }}
2021-04-29 02:13:54 +02:00
<i class="zulip-icon zulip-icon-bot" aria-hidden="true"></i>
2017-10-16 05:40:09 +02:00
{{ else }}
2021-11-02 08:36:31 +01:00
<span class=" {{ user_circle_class }} user_circle popover_user_presence tippy-zulip-tooltip hidden-for-spectators" data-tippy-content=" {{ user_last_seen_time_status }} "></span>
2017-10-16 05:40:09 +02:00
{{ / if }}
2017-10-14 00:33:36 +02:00
{{ / if }}
2017-05-12 20:17:17 +02:00
</li>
2019-04-20 18:08:29 +02:00
2017-10-14 00:33:36 +02:00
{{ # if is_active }}
2019-04-20 18:08:29 +02:00
{{ # if show_email }}
2021-07-09 09:02:58 +02:00
{{!-- This div is added to enable interactivity for tooltip - https://atomiks.github.io/tippyjs/v5/accessibility/#interactivity --}}
<div>
<li class="user_popover_email">
<i class="fa fa-clone hide_copy_icon" data-clipboard-text=" {{ user_email }} "></i>
{{ user_email }}
</li>
</div>
2019-04-20 18:08:29 +02:00
{{ / if }}
2017-10-14 00:33:36 +02:00
{{ else }}
2022-07-22 23:09:55 +02:00
<li class="user_popover_email half-opacity italic"> {{ # if is_bot }} {{ # tr }} This bot has been deactivated. {{ / tr }} {{ else }} {{ # tr }} This user has been deactivated. {{ / tr }} {{ / if }} </li>
2017-10-14 00:33:36 +02:00
{{ / if }}
2013-07-11 23:06:58 +02:00
2019-04-20 18:08:29 +02:00
2019-05-29 05:59:53 +02:00
{{ # if is_bot }}
{{ # if bot_owner }}
2022-06-27 22:31:02 +02:00
<li> {{ # tr }} Bot owner {{ / tr }} :
2020-09-19 15:15:44 +02:00
<span class="bot-owner-name view_user_profile" data-user-id=' {{ bot_owner .user_id }} '>
2019-05-29 05:59:53 +02:00
{{ bot_owner .full_name }}
</span>
</li>
2022-06-30 00:14:58 +02:00
{{ else if is_system_bot }}
2021-04-14 03:04:02 +02:00
<li> {{ # tr }} System bot {{ / tr }} </li>
2022-06-30 00:14:58 +02:00
{{ else }}
2021-04-14 03:04:02 +02:00
<li> {{ # tr }} Bot {{ / tr }} </li>
2019-05-29 05:59:53 +02:00
{{ / if }}
{{ else }}
<li> {{ user_type }} </li>
{{ / if }}
2022-07-12 21:25:02 +02:00
{{!-- Display selected custom profile fields in this popover. --}}
{{ # each display_profile_fields }}
<li data-type=" {{ this .type }} " class="field-section custom_user_field tippy-zulip-tooltip" data-tippy-content=" {{ this .name }} " data-field-id=" {{ this .id }} ">
{{ # if this .is_link }}
<a tabindex="0" href=" {{ this .value }} " target="_blank" rel="noopener noreferrer" class="value"> {{ this .value }} </a>
{{ else if this .is_external_account }}
<a tabindex="0" href=" {{ this .link }} " target="_blank" rel="noopener noreferrer" class="value">
{{ # if ( eq this .subtype "github" ) }}
<i class="fa fa-github" aria-hidden="true"></i>
{{ else if ( eq this .subtype "twitter" ) }}
<i class="fa fa-twitter" aria-hidden="true"></i>
{{ / if }}
{{ this .value }}
</a>
{{ else }}
{{ # if this .rendered_value }}
<span class="value rendered_markdown"> {{ rendered_markdown this .rendered_value }} </span>
{{ else }}
<span class="value"> {{ this .value }} </span>
{{ / if }}
{{ / if }}
</li>
{{ / each }}
2022-03-09 00:53:46 +01:00
{{ # if user_time }}
<li class="hidden-for-spectators"> {{ user_time }} {{ # tr }} Local time {{ / tr }} </li>
{{ / if }}
2021-11-02 08:36:31 +01:00
<li class="only-visible-for-spectators">Joined {{ date_joined }} </li>
2017-02-15 21:07:21 +01:00
</div>
2019-02-05 22:12:31 +01:00
{{ # if is_me }}
2021-04-21 00:46:14 +02:00
<hr />
2022-09-21 15:49:36 +02:00
{{ # if in visible_mode }}
2019-02-05 22:12:31 +01:00
<li>
2022-09-21 15:49:36 +02:00
<a tabindex="0" class="invisible_mode_turn_off">
<i class="fa fa-circle-o" aria-hidden="true"></i> {{ # tr }} Turn off invisible mode {{ / tr }}
2019-02-05 22:12:31 +01:00
</a>
</li>
2022-09-21 15:49:36 +02:00
{{ else }}
2019-02-05 22:12:31 +01:00
<li>
2022-09-21 15:49:36 +02:00
<a tabindex="0" class="invisible_mode_turn_on">
<i class="fa fa-circle-o" aria-hidden="true"></i> {{ # tr }} Go invisible {{ / tr }}
2019-02-05 22:12:31 +01:00
</a>
</li>
{{ / if }}
<li>
2020-08-02 16:00:37 +02:00
<a tabindex="0" class="update_status_text">
2019-02-05 22:12:31 +01:00
<i class="fa fa-comments" aria-hidden="true"></i>
{{ # if status_text }}
2021-06-29 18:08:29 +02:00
{{ # tr }} Edit status {{ / tr }}
2019-02-05 22:12:31 +01:00
{{ else }}
2021-06-29 18:08:29 +02:00
{{ # tr }} Set a status {{ / tr }}
2019-02-05 22:12:31 +01:00
{{ / if }}
</a>
</li>
{{ / if }}
2021-06-29 17:21:30 +02:00
{{ # if status_content_available }}
2021-04-21 00:46:14 +02:00
{{ # unless is_me }} <hr /> {{ / unless }}
2019-02-05 22:12:31 +01:00
<li class="user_info_status_text">
2019-02-23 00:46:51 +01:00
<span id="status_message">
2021-08-03 15:52:14 +02:00
{{ # if status_emoji_info }}
{{ # if status_emoji_info .emoji_alt_code }}
<div class="emoji_alt_code"> : {{ status_emoji_info .emoji_name }} :</div>
2022-06-30 00:14:58 +02:00
{{ else if status_emoji_info .url }}
2021-08-03 15:52:14 +02:00
<img src=" {{ status_emoji_info .url }} " class="emoji status_emoji" />
2022-06-30 00:14:58 +02:00
{{ else }}
2021-08-03 15:52:14 +02:00
<div class="emoji status_emoji emoji- {{ status_emoji_info .emoji_code }} "></div>
2021-06-29 17:21:30 +02:00
{{ / if }}
{{ / if }}
2021-10-19 21:21:45 +02:00
{{ status_text }}
2021-04-14 03:04:02 +02:00
{{ # if is_me }} (<a tabindex="0" class="clear_status"> {{ # tr }} clear {{ / tr }} </a>) {{ / if }}
2019-02-23 00:46:51 +01:00
</span>
2019-02-05 22:12:31 +01:00
</li>
{{ / if }}
2021-11-02 08:36:31 +01:00
{{ # if spectator_view }}
{{ else }}
<hr />
2017-12-13 21:54:17 +01:00
<li>
2021-11-02 08:36:31 +01:00
<a tabindex="0" class="view_full_user_profile">
{{ # if is_me }}
<i class="fa fa-user" aria-hidden="true"></i> {{ # tr }} View your profile {{ / tr }}
{{ else }}
<i class="fa fa-user" aria-hidden="true"></i> {{ # tr }} View full profile {{ / tr }}
{{ / if }}
2017-12-13 21:54:17 +01:00
</a>
</li>
2022-04-22 20:32:41 +02:00
{{ # if can_send_private_message }}
2021-11-02 08:36:31 +01:00
<li>
<a tabindex="0" class=" {{ private_message_class }} ">
<i class="fa fa-envelope" aria-hidden="true"></i> {{ # tr }} Send private message {{ / tr }} {{ # if is_sender_popover }} <span class="hotkey-hint">(R)</span> {{ / if }}
</a>
</li>
{{ / if }}
{{ # unless is_me }}
<li>
{{ # if has_message_context }}
<a tabindex="0" class="mention_user">
<i class="fa fa-at" aria-hidden="true"></i>
2022-07-22 23:09:55 +02:00
{{ # if is_bot }} {{ # tr }} Reply mentioning bot {{ / tr }} {{ else }} {{ # tr }} Reply mentioning user {{ / tr }} {{ / if }}
2021-11-02 08:36:31 +01:00
{{ # if is_sender_popover }} <span class="hotkey-hint">(@)</span> {{ / if }}
</a>
2018-12-21 19:56:51 +01:00
{{ else }}
2021-11-02 08:36:31 +01:00
<a tabindex="0" class="copy_mention_syntax" data-clipboard-text=" {{ user_mention_syntax }} ">
<i class="fa fa-at" aria-hidden="true"></i>
{{ # tr }} Copy mention syntax {{ / tr }}
{{ # if is_sender_popover }} <span class="hotkey-hint">(@)</span> {{ / if }}
</a>
2018-12-21 19:56:51 +01:00
{{ / if }}
2021-11-02 08:36:31 +01:00
</li>
{{ / unless }}
{{ # if is_me }}
<li>
<a href="/#settings/profile">
<i class="fa fa-edit" aria-hidden="true"></i> {{ # tr }} Edit your profile {{ / tr }}
</a>
</li>
{{ / if }}
<hr />
<li>
2022-03-01 19:14:26 +01:00
<a href=" {{ pm_with_url }} " class="narrow_to_private_messages">
2021-11-02 08:36:31 +01:00
<i class="fa fa-lock" aria-hidden="true"></i>
{{ # if is_me }}
{{ # tr }} View private messages to myself {{ / tr }}
{{ else }}
{{ # tr }} View private messages {{ / tr }}
{{ / if }}
</a>
</li>
<li>
<a href=" {{ sent_by_uri }} " class="narrow_to_messages_sent">
<i class="fa fa-paper-plane" aria-hidden="true"></i> {{ # tr }} View messages sent {{ / tr }}
</a>
</li>
2021-03-27 13:14:34 +01:00
2021-11-02 08:36:31 +01:00
{{ # if can_mute }}
<hr />
<li>
<a tabindex="0" class="sidebar-popover-mute-user">
<i class="fa fa-eye-slash" aria-hidden="true"></i> {{ # tr }} Mute this user {{ / tr }}
</a>
</li>
{{ / if }}
{{ # if can_unmute }}
<hr />
<li>
<a tabindex="0" class="sidebar-popover-unmute-user">
<i class="fa fa-eye" aria-hidden="true"></i> {{ # tr }} Unmute this user {{ / tr }}
</a>
</li>
{{ / if }}
2022-03-18 13:03:26 +01:00
{{ # if can_manage_user }}
2022-03-16 06:23:43 +01:00
{{ # if is_active }}
<li>
<a tabindex="0" class="sidebar-popover-manage-user">
2022-07-22 23:09:55 +02:00
<i class="fa fa-edit" aria-hidden="true"></i> {{ # if is_bot }} {{ # tr }} Manage this bot {{ / tr }} {{ else }} {{ # tr }} Manage this user {{ / tr }} {{ / if }}
2022-03-16 06:23:43 +01:00
</a>
</li>
2022-03-18 13:03:26 +01:00
{{ else }}
<li>
<a tabindex="0" class="sidebar-popover-reactivate-user">
2022-07-22 23:09:55 +02:00
<i class="fa fa-user-plus" aria-hidden="true"></i> {{ # if is_bot }} {{ # tr }} Reactivate this bot {{ / tr }} {{ else }} {{ # tr }} Reactivate this user {{ / tr }} {{ / if }}
2022-03-18 13:03:26 +01:00
</a>
</li>
2022-03-16 06:23:43 +01:00
{{ / if }}
2021-11-26 13:46:11 +01:00
{{ / if }}
2021-03-27 13:14:34 +01:00
{{ / if }}
2013-07-11 23:06:58 +02:00
</ul>