2023-08-09 07:23:30 +02:00
|
|
|
{{#if is_stream}}
|
|
|
|
{{> inbox_stream_header_row}}
|
|
|
|
{{else}}
|
2024-06-22 14:27:49 +02:00
|
|
|
<div id="inbox-row-conversation-{{conversation_key}}" class="inbox-row {{#if is_hidden}}hidden_by_filters{{/if}} {{#if is_collapsed}}collapsed_container{{/if}}" tabindex="0" data-col-index="{{ column_indexes.RECIPIENT }}">
|
2023-09-14 19:27:42 +02:00
|
|
|
<div class="inbox-focus-border">
|
|
|
|
<div class="inbox-left-part-wrapper">
|
|
|
|
<div class="inbox-left-part">
|
2024-06-22 14:27:49 +02:00
|
|
|
<div class="hide fake-collapse-button" tabindex="0" data-col-index="{{ column_indexes.COLLAPSE_BUTTON }}"></div>
|
2023-09-14 19:27:42 +02:00
|
|
|
{{#if is_direct}}
|
2024-06-22 14:27:49 +02:00
|
|
|
<a class="recipients_info {{#unless user_circle_class}}inbox-group-or-bot-dm{{/unless}}" href="{{dm_url}}" tabindex="-1">
|
2023-09-22 12:47:56 +02:00
|
|
|
<span class="user_block">
|
|
|
|
{{#if is_bot}}
|
|
|
|
<span class="zulip-icon zulip-icon-bot" aria-hidden="true"></span>
|
|
|
|
{{else if is_group}}
|
2024-02-25 16:22:29 +01:00
|
|
|
<span class="zulip-icon zulip-icon-triple-users" aria-hidden="true"></span>
|
2023-09-22 12:47:56 +02:00
|
|
|
{{else}}
|
2024-07-09 18:59:01 +02:00
|
|
|
<span class="{{user_circle_class}} user_circle" data-presence-indicator-user-id="{{user_ids_string}}"></span>
|
2023-09-22 12:47:56 +02:00
|
|
|
{{/if}}
|
|
|
|
<span class="recipients_name">{{{rendered_dm_with}}}</span>
|
|
|
|
</span>
|
2023-09-14 19:27:42 +02:00
|
|
|
</a>
|
2024-06-22 14:27:49 +02:00
|
|
|
<div class="unread-count-focus-outline" tabindex="0" data-col-index="{{ column_indexes.UNREAD_COUNT }}">
|
2023-10-08 11:46:35 +02:00
|
|
|
<span class="unread_count tippy-zulip-tooltip on_hover_dm_read"
|
|
|
|
data-user-ids-string="{{user_ids_string}}" data-tippy-content="{{t 'Mark as read' }}"
|
|
|
|
aria-label="{{t 'Mark as read' }}">{{unread_count}}</span>
|
|
|
|
</div>
|
2023-09-14 19:27:42 +02:00
|
|
|
{{else if is_topic}}
|
|
|
|
{{!-- Invisible user circle element for alignment of topic text with DM user name --}}
|
|
|
|
<span class="user_circle_green user_circle invisible"></span>
|
|
|
|
<div class="inbox-topic-name">
|
|
|
|
<a tabindex="-1" href="{{topic_url}}">{{topic_name}}</a>
|
|
|
|
</div>
|
2023-09-19 14:43:02 +02:00
|
|
|
<span class="unread_mention_info tippy-zulip-tooltip
|
|
|
|
{{#unless mention_in_unread}}hidden{{/unless}}"
|
|
|
|
data-tippy-content="{{t 'You have mentions'}}">@</span>
|
2024-06-22 14:27:49 +02:00
|
|
|
<div class="unread-count-focus-outline" tabindex="0" data-col-index="{{ column_indexes.UNREAD_COUNT }}">
|
2023-10-08 11:46:35 +02:00
|
|
|
<span class="unread_count tippy-zulip-tooltip on_hover_topic_read"
|
|
|
|
data-stream-id="{{stream_id}}" data-topic-name="{{topic_name}}"
|
|
|
|
data-tippy-content="{{t 'Mark as read' }}" aria-label="{{t 'Mark as read' }}">
|
|
|
|
{{unread_count}}
|
|
|
|
</span>
|
|
|
|
</div>
|
2023-09-14 19:27:42 +02:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2023-08-09 07:23:30 +02:00
|
|
|
</div>
|
2023-09-19 18:48:02 +02:00
|
|
|
{{#unless is_direct}}
|
|
|
|
<div class="inbox-right-part-wrapper">
|
|
|
|
<div class="inbox-right-part">
|
2023-10-08 11:52:25 +02:00
|
|
|
{{#if is_topic}}
|
2024-03-14 16:07:50 +01:00
|
|
|
<span class="visibility-policy-indicator change_visibility_policy hidden-for-spectators{{#if (eq visibility_policy all_visibility_policies.INHERIT)}} inbox-row-visibility-policy-inherit{{/if}}"
|
2024-06-22 14:27:49 +02:00
|
|
|
data-stream-id="{{stream_id}}" data-topic-name="{{topic_name}}" tabindex="0" data-col-index="{{ column_indexes.TOPIC_VISIBILITY }}">
|
2023-08-21 08:10:03 +02:00
|
|
|
{{#if (eq visibility_policy all_visibility_policies.FOLLOWED)}}
|
2024-07-16 23:17:19 +02:00
|
|
|
<i class="zulip-icon zulip-icon-follow recipient_bar_icon" data-tippy-content="{{t 'You follow this topic.'}}"
|
2024-07-25 16:54:12 +02:00
|
|
|
role="button" aria-haspopup="true" aria-label="{{t 'You follow this topic.' }}"></i>
|
2023-08-21 08:10:03 +02:00
|
|
|
{{else if (eq visibility_policy all_visibility_policies.UNMUTED)}}
|
2024-07-16 23:17:19 +02:00
|
|
|
<i class="zulip-icon zulip-icon-unmute-new recipient_bar_icon" data-tippy-content="{{t 'You have unmuted this topic.'}}"
|
2024-07-25 16:54:12 +02:00
|
|
|
role="button" aria-haspopup="true" aria-label="{{t 'You have unmuted this topic.' }}"></i>
|
2023-08-21 08:10:03 +02:00
|
|
|
{{else if (eq visibility_policy all_visibility_policies.MUTED)}}
|
2024-07-16 23:17:19 +02:00
|
|
|
<i class="zulip-icon zulip-icon-mute-new recipient_bar_icon" data-tippy-content="{{t 'You have muted this topic.'}}"
|
2024-07-25 16:54:12 +02:00
|
|
|
role="button" aria-haspopup="true" aria-label="{{t 'You have muted this topic.' }}"></i>
|
2024-03-14 16:07:50 +01:00
|
|
|
{{else if (eq visibility_policy all_visibility_policies.INHERIT)}}
|
2024-07-22 20:33:36 +02:00
|
|
|
<i class="zulip-icon zulip-icon-inherit recipient_bar_icon"
|
2024-07-25 16:54:12 +02:00
|
|
|
role="button" aria-haspopup="true" aria-label="{{t 'Notifications are based on your configuration for this channel.' }}"></i>
|
2023-08-21 08:10:03 +02:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
2023-10-08 11:52:25 +02:00
|
|
|
{{/if}}
|
2023-09-19 18:48:02 +02:00
|
|
|
<div class="inbox-action-button inbox-topic-menu"
|
|
|
|
{{#if is_topic}}data-stream-id="{{stream_id}}" data-topic-name="{{topic_name}}"
|
2024-06-22 14:27:49 +02:00
|
|
|
data-topic-url="{{topic_url}}"{{/if}} tabindex="0" data-col-index="{{ column_indexes.ACTION_MENU }}">
|
2023-09-19 18:48:02 +02:00
|
|
|
<i class="zulip-icon zulip-icon-more-vertical" aria-hidden="true"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
2023-08-09 07:23:30 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|