2013-07-11 23:06:58 +02:00
{{! Contents of the "message info" popup }}
2022-10-03 13:29:59 +02:00
<ul class="nav nav-list info_popover_actions" id="user_info_popover" data-user-id=" {{ user_id }} ">
<li class="popover_user_name_row">
<b class="user_full_name" data-tippy-content=" {{ user_full_name }} "> {{ user_full_name }} </b>
2017-10-14 00:33:36 +02:00
{{ # if is_active }}
2022-10-03 13:29:59 +02:00
{{ # if is_bot }}
<i class="zulip-icon zulip-icon-bot" aria-hidden="true"></i>
{{ else }}
<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>
2019-04-20 18:08:29 +02:00
{{ / if }}
2017-10-14 00:33:36 +02:00
{{ / if }}
2022-10-03 13:29:59 +02:00
{{ # if show_manage_menu }}
<span class="user_info_popover_action_buttons">
<a class="user_info_popover_manage_menu_btn" role="button" tabindex="0" aria-haspopup="true">
<i class="popover_action_icon zulip-icon zulip-icon-ellipsis-v-solid" aria-hidden="true"></i>
</a>
</span>
{{ / if }}
</li>
2013-07-11 23:06:58 +02:00
2019-04-20 18:08:29 +02:00
2022-10-03 13:29:59 +02:00
{{ # if is_active }}
2021-10-26 15:43:39 +02:00
{{ # if user_email }}
2022-10-03 13:29:59 +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 }}
2022-07-12 21:25:02 +02:00
</li>
2022-10-03 13:29:59 +02:00
</div>
2022-03-09 00:53:46 +01:00
{{ / if }}
2022-10-03 13:29:59 +02:00
{{ else }}
2023-03-15 23:51:27 +01:00
<li class="user_popover_email half-opacity italic"> {{ # if is_bot }} {{ t "This bot has been deactivated." }} {{ else }} {{ t "This user has been deactivated." }} {{ / if }} </li>
2022-10-03 13:29:59 +02:00
{{ / if }}
2022-03-09 00:53:46 +01:00
2019-02-05 22:12:31 +01:00
2022-10-03 13:29:59 +02:00
{{ # if is_bot }}
{{ # if bot_owner }}
2023-03-15 23:51:27 +01:00
<li class="bot_owner" data-tippy-content=" {{ bot_owner .full_name }} "> {{ t "Bot owner" }} :
2022-10-03 13:29:59 +02:00
<span class="bot-owner-name view_user_profile" data-user-id=' {{ bot_owner .user_id }} '>
{{ bot_owner .full_name }}
</span>
</li>
{{ else if is_system_bot }}
2023-03-15 23:51:27 +01:00
<li> {{ t "System bot" }} </li>
2022-09-21 15:49:36 +02:00
{{ else }}
2023-03-15 23:51:27 +01:00
<li> {{ t "Bot" }} </li>
2019-02-05 22:12:31 +01:00
{{ / if }}
2022-10-03 13:29:59 +02:00
{{ else }}
<li> {{ user_type }} </li>
{{ / if }}
{{!-- Display selected custom profile fields in this popover. --}}
2023-02-21 13:18:57 +01:00
{{ > user_custom_profile_fields profile_fields = display_profile_fields for_user_info_popover = true }}
2022-10-03 13:29:59 +02:00
2023-03-15 23:51:27 +01:00
<li class="only-visible-for-spectators"> {{ t "Joined {date_joined}" }} </li>
2022-10-03 13:29:59 +02:00
{{ # if ( or ( and user_time is_active ) is_me status_content_available ) }}
<hr />
{{ / if }}
{{ # if ( and user_time is_active ) }}
2023-03-15 23:51:27 +01:00
<li class="hidden-for-spectators local_time"> {{ t "{user_time} local time" }} </li>
2019-02-05 22:12:31 +01:00
{{ / if }}
2021-06-29 17:21:30 +02:00
{{ # if status_content_available }}
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 }}
2023-03-16 00:34:32 +01:00
<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 }}
2022-10-04 09:19:30 +02:00
<span class="status_text">
{{ status_text }}
{{ # if is_me }}
2023-03-15 23:51:27 +01:00
<span class="clear_status_button">(<a tabindex="0" class="clear_status"> {{ t "clear" }} </a>)</span>
2022-10-04 09:19:30 +02:00
{{ / if }}
</span>
2019-02-23 00:46:51 +01:00
</span>
2019-02-05 22:12:31 +01:00
</li>
{{ / if }}
2022-10-03 13:29:59 +02:00
{{ # if is_me }}
<li>
<a tabindex="0" class="update_status_text">
<i class="fa fa-comments" aria-hidden="true"></i>
{{ # if status_text }}
2023-03-15 23:51:27 +01:00
{{ t "Edit status" }}
2022-10-03 13:29:59 +02:00
{{ else }}
2023-03-15 23:51:27 +01:00
{{ t "Set a status" }}
2022-10-03 13:29:59 +02:00
{{ / if }}
</a>
</li>
{{ # if in visible_mode }}
<li>
<a tabindex="0" class="invisible_mode_turn_off">
2023-03-15 23:51:27 +01:00
<i class="fa fa-circle-o" aria-hidden="true"></i> {{ t "Turn off invisible mode" }}
2022-10-03 13:29:59 +02:00
</a>
</li>
{{ else }}
<li>
<a tabindex="0" class="invisible_mode_turn_on">
2023-03-15 23:51:27 +01:00
<i class="fa fa-circle-o" aria-hidden="true"></i> {{ t "Go invisible" }}
2022-10-03 13:29:59 +02:00
</a>
</li>
{{ / if }}
{{ / if }}
2021-11-02 08:36:31 +01:00
2022-10-03 13:29:59 +02:00
{{ # unless spectator_view }}
2021-11-02 08:36:31 +01:00
<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 }}
2023-03-15 23:51:27 +01:00
<i class="fa fa-user" aria-hidden="true"></i> {{ t "View your profile" }}
2021-11-02 08:36:31 +01:00
{{ else }}
2023-03-15 23:51:27 +01:00
<i class="fa fa-user" aria-hidden="true"></i> {{ t "View profile" }}
2021-11-02 08:36:31 +01:00
{{ / 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 }} ">
2023-03-15 23:51:27 +01:00
<i class="fa fa-comment" aria-hidden="true"></i> {{ t "Send direct message" }} {{ # if is_sender_popover }} <span class="hotkey-hint">(R)</span> {{ / if }}
2021-11-02 08:36:31 +01:00
</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>
2023-03-15 23:51:27 +01:00
{{ # if is_bot }} {{ t "Reply mentioning bot" }} {{ else }} {{ t "Reply mentioning user" }} {{ / 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>
2023-03-15 23:51:27 +01:00
{{ t "Copy mention syntax" }}
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
{{ / if }}
2021-11-02 08:36:31 +01:00
</li>
{{ / unless }}
{{ # if is_me }}
<li>
<a href="/#settings/profile">
2023-03-15 23:51:27 +01:00
<i class="fa fa-edit" aria-hidden="true"></i> {{ t "Edit your profile" }}
2021-11-02 08:36:31 +01:00
</a>
</li>
{{ / if }}
<hr />
<li>
2022-03-01 19:14:26 +01:00
<a href=" {{ pm_with_url }} " class="narrow_to_private_messages">
2022-10-05 20:39:35 +02:00
<i class="fa fa-envelope" aria-hidden="true"></i>
2021-11-02 08:36:31 +01:00
{{ # if is_me }}
2023-03-15 23:51:27 +01:00
{{ t "View messages with yourself" }}
2021-11-02 08:36:31 +01:00
{{ else }}
2023-03-15 23:51:27 +01:00
{{ t "View direct messages" }}
2021-11-02 08:36:31 +01:00
{{ / if }}
</a>
</li>
<li>
<a href=" {{ sent_by_uri }} " class="narrow_to_messages_sent">
2023-03-15 23:51:27 +01:00
<i class="fa fa-paper-plane" aria-hidden="true"></i> {{ t "View messages sent" }}
2021-11-02 08:36:31 +01:00
</a>
</li>
2022-10-03 13:29:59 +02:00
{{ / unless }}
2013-07-11 23:06:58 +02:00
</ul>