2014-03-03 21:59:29 +01:00
|
|
|
{{#if is_stream}}
|
2023-04-08 01:39:52 +02:00
|
|
|
<div class="message_header message_header_stream right_part" data-stream-id="{{stream_id}}">
|
|
|
|
<div class="message-header-contents" style="background: {{recipient_bar_color}};">
|
2023-02-15 21:02:41 +01:00
|
|
|
{{! stream link }}
|
2023-04-28 14:10:07 +02:00
|
|
|
<a class="message_label_clickable narrows_by_recipient stream_label tippy-zulip-delayed-tooltip"
|
2023-02-15 21:02:41 +01:00
|
|
|
href="{{stream_url}}"
|
2023-04-28 14:10:07 +02:00
|
|
|
data-tippy-content="{{t 'Narrow to stream "{display_recipient}"' }}">
|
2023-04-07 23:07:35 +02:00
|
|
|
<span class="stream-privacy-modified-color-{{stream_id}} stream-privacy filter-icon" style="color: {{stream_privacy_icon_color}}">
|
2023-04-07 21:42:03 +02:00
|
|
|
{{> stream_privacy}}
|
|
|
|
</span>
|
2021-12-04 13:23:58 +01:00
|
|
|
|
2023-02-15 21:02:41 +01:00
|
|
|
{{~! Recipient (e.g. stream/topic or topic) ~}}
|
|
|
|
{{~display_recipient~}}
|
|
|
|
</a>
|
2023-04-08 01:46:55 +02:00
|
|
|
<span class="stream_topic_separator"><i class="zulip-icon zulip-icon-chevron-right"></i></span>
|
2014-03-03 21:59:29 +01:00
|
|
|
|
2023-02-15 21:02:41 +01:00
|
|
|
{{! hidden narrow icon for copy-pasting }}
|
|
|
|
<span class="copy-paste-text">></span>
|
2014-03-03 21:59:29 +01:00
|
|
|
|
2023-02-15 21:02:41 +01:00
|
|
|
{{! topic stuff }}
|
|
|
|
<span class="stream_topic">
|
|
|
|
{{! topic link }}
|
2023-04-28 14:10:07 +02:00
|
|
|
<a class="message_label_clickable narrows_by_topic tippy-zulip-delayed-tooltip"
|
2023-02-15 21:02:41 +01:00
|
|
|
href="{{topic_url}}"
|
2023-04-28 14:10:07 +02:00
|
|
|
data-tippy-content="{{t 'Narrow to stream "{display_recipient}", topic "{topic}"' }}">
|
2023-02-15 21:02:41 +01:00
|
|
|
{{#if use_match_properties}}
|
|
|
|
{{{match_topic}}}
|
|
|
|
{{else}}
|
|
|
|
{{topic}}
|
|
|
|
{{/if}}
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<span class="recipient_bar_controls no-select">
|
|
|
|
<span class="topic_edit hidden-for-spectators">
|
|
|
|
<span class="topic_edit_form"></span>
|
2021-11-24 14:04:52 +01:00
|
|
|
</span>
|
2018-10-19 09:43:22 +02:00
|
|
|
|
2023-02-15 21:02:41 +01:00
|
|
|
{{! exterior links (e.g. to a trac ticket) }}
|
|
|
|
{{#each topic_links}}
|
|
|
|
<a href="{{this.url}}" target="_blank" rel="noopener noreferrer" class="no-underline">
|
|
|
|
<i class="fa fa-external-link-square recipient_bar_icon" data-tippy-content="Open {{this.text}}" aria-label="{{t 'External link' }}"></i>
|
|
|
|
</a>
|
|
|
|
{{/each}}
|
2014-03-03 21:59:29 +01:00
|
|
|
|
2023-02-15 21:02:41 +01:00
|
|
|
{{! edit topic pencil icon }}
|
|
|
|
{{#if always_visible_topic_edit}}
|
|
|
|
<i class="fa fa-pencil always_visible_topic_edit recipient_bar_icon hidden-for-spectators" data-tippy-content="{{t 'Edit topic'}}" role="button" tabindex="0" aria-label="{{t 'Edit topic' }}"></i>
|
|
|
|
{{else if on_hover_topic_edit}}
|
|
|
|
<i class="fa fa-pencil on_hover_topic_edit recipient_bar_icon hidden-for-spectators" data-tippy-content="{{t 'Edit topic'}}" role="button" tabindex="0" aria-label="{{t 'Edit topic' }}"></i>
|
|
|
|
{{/if}}
|
2021-06-27 09:16:03 +02:00
|
|
|
|
2023-02-15 21:02:41 +01:00
|
|
|
{{#if user_can_resolve_topic}}
|
|
|
|
{{#if topic_is_resolved}}
|
|
|
|
<i class="fa fa-check on_hover_topic_unresolve recipient_bar_icon hidden-for-spectators" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mark as unresolved' }}" role="button" tabindex="0" aria-label="{{t 'Mark as unresolved' }}"></i>
|
2021-04-30 07:44:43 +02:00
|
|
|
{{else}}
|
2023-02-15 21:02:41 +01:00
|
|
|
<i class="fa fa-check on_hover_topic_resolve recipient_bar_icon hidden-for-spectators" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mark as resolved' }}" role="button" tabindex="0" aria-label="{{t 'Mark as resolved' }}"></i>
|
2021-04-30 07:44:43 +02:00
|
|
|
{{/if}}
|
2023-02-15 21:02:41 +01:00
|
|
|
{{/if}}
|
|
|
|
|
2023-04-22 23:00:26 +02:00
|
|
|
{{#if stream_muted}}
|
|
|
|
<i class="zulip-icon zulip-icon-unmute stream_muted {{#if topic_unmuted}} on_hover_topic_mute {{else}} on_hover_topic_unmute {{/if}} recipient_bar_icon hidden-for-spectators" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" role="button" tabindex="0"
|
|
|
|
{{#if topic_unmuted}} data-tooltip-template-id="topic-mute-tooltip-template" aria-label="{{t 'Mute topic' }}" {{else}} data-tooltip-template-id="topic-unmute-tooltip-template" aria-label="{{t 'Unmute topic' }}" {{/if}}></i>
|
2023-02-15 21:02:41 +01:00
|
|
|
{{else}}
|
2023-04-22 23:00:26 +02:00
|
|
|
<i class="zulip-icon zulip-icon-mute stream_unmuted{{#if topic_muted}} on_hover_topic_unmute {{else}} on_hover_topic_mute {{/if}} recipient_bar_icon hidden-for-spectators" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" role="button" tabindex="0"
|
|
|
|
{{#if topic_muted}} data-tooltip-template-id="topic-unmute-tooltip-template" aria-label="{{t 'Unmute topic' }}" {{else}} data-tooltip-template-id="topic-mute-tooltip-template" aria-label="{{t 'Mute topic' }}" {{/if}}></i>
|
2023-02-15 21:02:41 +01:00
|
|
|
{{/if}}
|
2023-04-22 23:00:26 +02:00
|
|
|
|
|
|
|
<template id="topic-unmute-tooltip-template">
|
|
|
|
{{t "Unmute topic" }}
|
|
|
|
{{tooltip_hotkey_hints "Shift" "M"}}
|
|
|
|
</template>
|
|
|
|
<template id="topic-mute-tooltip-template">
|
|
|
|
{{t "Mute topic" }}
|
|
|
|
{{tooltip_hotkey_hints "Shift" "M"}}
|
|
|
|
</template>
|
2023-02-15 21:02:41 +01:00
|
|
|
</span>
|
|
|
|
<span class="recipient_row_date {{#if date_unchanged}}recipient_row_date_unchanged{{/if}}">{{{date}}}</span>
|
2014-03-03 21:59:29 +01:00
|
|
|
</div>
|
2017-04-15 04:34:44 +02:00
|
|
|
</div>
|
2014-03-03 21:59:29 +01:00
|
|
|
{{else}}
|
2023-04-08 01:39:52 +02:00
|
|
|
<div class="message_header message_header_private_message">
|
2023-02-15 21:02:41 +01:00
|
|
|
<div class="message-header-contents">
|
2023-04-28 14:10:07 +02:00
|
|
|
<a class="message_label_clickable narrows_by_recipient stream_label tippy-zulip-delayed-tooltip"
|
2023-02-15 21:02:41 +01:00
|
|
|
href="{{pm_with_url}}"
|
2023-04-28 14:10:07 +02:00
|
|
|
data-tippy-content="{{t 'Narrow to your direct messages with {display_reply_to}' }}">
|
2023-04-08 01:47:39 +02:00
|
|
|
<span class="private_message_header_icon"><i class="zulip-icon zulip-icon-user"></i></span>
|
|
|
|
{{t "You and {display_reply_to}" }}
|
2023-02-15 21:02:41 +01:00
|
|
|
</a>
|
|
|
|
<span class="recipient_row_date {{#if date_unchanged}}recipient_row_date_unchanged{{/if}}">{{{date}}}</span>
|
2014-03-03 21:59:29 +01:00
|
|
|
</div>
|
2017-04-15 04:34:44 +02:00
|
|
|
</div>
|
2014-03-14 16:28:54 +01:00
|
|
|
{{/if}}
|