2014-03-03 21:59:29 +01:00
|
|
|
{{#if is_stream}}
|
2017-04-15 04:34:44 +02:00
|
|
|
<div class="message_header message_header_stream right_part">
|
2014-03-03 21:59:29 +01:00
|
|
|
<div class="message-header-wrapper">
|
2017-04-15 04:34:44 +02:00
|
|
|
<div class="message-header-contents">
|
|
|
|
{{! stream link }}
|
|
|
|
<a class="message_label_clickable narrows_by_recipient stream_label {{color_class}}"
|
2018-02-16 01:47:38 +01:00
|
|
|
style="background: {{background_color}}; border-left-color: {{background_color}};"
|
2017-04-15 04:34:44 +02:00
|
|
|
href="{{stream_url}}"
|
2021-04-14 03:04:02 +02:00
|
|
|
title="{{#tr}}Narrow to stream "{display_recipient}"{{/tr}}">
|
2017-04-15 04:34:44 +02:00
|
|
|
{{! invite only lock }}
|
|
|
|
{{#if invite_only}}
|
2018-11-08 18:21:54 +01:00
|
|
|
<i class="fa fa-lock invite-stream-icon" title="{{t 'This is a private stream' }}" aria-label="{{t 'This is a private stream' }}"></i>
|
2017-04-15 04:34:44 +02:00
|
|
|
{{/if}}
|
2019-03-02 01:22:35 +01:00
|
|
|
{{display_recipient}}</a>
|
2014-03-03 21:59:29 +01:00
|
|
|
|
2017-04-15 04:34:44 +02:00
|
|
|
{{! hidden narrow icon for copy-pasting }}
|
|
|
|
<span class="copy-paste-text">></span>
|
2014-03-03 21:59:29 +01:00
|
|
|
|
2017-04-15 04:34:44 +02:00
|
|
|
{{! topic stuff }}
|
|
|
|
<span class="stream_topic">
|
|
|
|
{{! topic link }}
|
2018-11-13 16:07:10 +01:00
|
|
|
<a class="message_label_clickable narrows_by_topic"
|
2017-04-15 04:34:44 +02:00
|
|
|
href="{{topic_url}}"
|
2021-04-14 03:04:02 +02:00
|
|
|
title="{{#tr}}Narrow to stream "{display_recipient}", topic "{topic}"{{/tr}}">
|
2017-04-15 04:34:44 +02:00
|
|
|
{{#if use_match_properties}}
|
2018-11-15 16:59:41 +01:00
|
|
|
{{{match_topic}}}
|
2017-04-15 04:34:44 +02:00
|
|
|
{{else}}
|
2018-11-15 17:13:49 +01:00
|
|
|
{{topic}}
|
2017-04-15 04:34:44 +02:00
|
|
|
{{/if}}
|
|
|
|
</a>
|
2017-08-28 07:01:00 +02:00
|
|
|
<!-- The missing whitespace on the next line is a hack; ideally, would be user-select: none. -->
|
|
|
|
</span><span class="recipient_bar_controls no-select">
|
2018-10-19 09:43:22 +02:00
|
|
|
{{! exterior links (e.g. to a trac ticket) }}
|
2018-11-15 16:41:21 +01:00
|
|
|
{{#each topic_links}}
|
2021-01-26 07:32:29 +01:00
|
|
|
<a href="{{this.url}}" target="_blank" rel="noopener noreferrer" class="no-underline">
|
2020-04-01 20:00:43 +02:00
|
|
|
<i class="fa fa-external-link-square recipient_bar_icon" aria-label="{{t 'External link' }}"></i>
|
2018-10-19 09:43:22 +02:00
|
|
|
</a>
|
|
|
|
{{/each}}
|
|
|
|
|
2018-11-15 17:13:49 +01:00
|
|
|
{{! edit topic pencil icon }}
|
2017-04-15 04:34:44 +02:00
|
|
|
{{#if always_visible_topic_edit}}
|
2021-06-26 20:21:25 +02:00
|
|
|
<i class="fa fa-pencil always_visible_topic_edit recipient_bar_icon hidden-for-spectators" {{#unless realm_allow_message_editing}}style="display: none"{{/unless}} data-tippy-content="{{t 'Edit topic'}}" role="button" tabindex="0" aria-label="{{t 'Edit topic' }}"></i>
|
2017-04-15 04:34:44 +02:00
|
|
|
{{else}}
|
|
|
|
{{#if on_hover_topic_edit}}
|
2021-06-26 20:21:25 +02:00
|
|
|
<i class="fa fa-pencil on_hover_topic_edit recipient_bar_icon hidden-for-spectators" {{#unless realm_allow_message_editing}}style="display: none"{{/unless}} data-tippy-content="{{t 'Edit topic'}}" role="button" tabindex="0" aria-label="{{t 'Edit topic' }}"></i>
|
2017-04-15 04:34:44 +02:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2014-03-03 21:59:29 +01:00
|
|
|
|
2020-10-05 16:52:47 +02:00
|
|
|
<span class="topic_edit hidden-for-spectators">
|
2017-08-28 06:54:31 +02:00
|
|
|
<span class="topic_edit_form" id="{{id}}"></span>
|
|
|
|
</span>
|
2016-08-18 22:18:33 +02:00
|
|
|
|
2021-06-27 09:16:03 +02:00
|
|
|
{{#if topic_is_resolved}}
|
|
|
|
<i class="fa fa-check on_hover_topic_unresolve recipient_bar_icon" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mark as unresolved' }}" role="button" tabindex="0" aria-label="{{t 'Mark as unresolved' }}"></i>
|
|
|
|
{{else}}
|
|
|
|
<i class="fa fa-check on_hover_topic_resolve recipient_bar_icon" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mark as resolved' }}" role="button" tabindex="0" aria-label="{{t 'Mark as resolved' }}"></i>
|
|
|
|
{{/if}}
|
|
|
|
|
2021-04-30 07:44:43 +02:00
|
|
|
{{#if topic_muted}}
|
2021-06-26 20:21:25 +02:00
|
|
|
<i class="fa fa-bell-slash on_hover_topic_unmute recipient_bar_icon" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-tippy-content="{{t 'Unmute topic' }} (M)" role="button" tabindex="0" aria-label="{{t 'Unmute topic' }}"></i>
|
2021-04-30 07:44:43 +02:00
|
|
|
{{else}}
|
2021-06-26 20:21:25 +02:00
|
|
|
<i class="fa fa-bell-slash on_hover_topic_mute recipient_bar_icon hidden-for-spectators" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mute topic' }} (M)" role="button" tabindex="0" aria-label="{{t 'Mute topic' }}"></i>
|
2021-04-30 07:44:43 +02:00
|
|
|
{{/if}}
|
2017-08-28 06:54:31 +02:00
|
|
|
</span>
|
2020-07-06 15:56:45 +02:00
|
|
|
<span class="recipient_row_date {{#if group_date_divider_html}}{{else}}hide-date{{/if}}">{{{date}}}</span>
|
2017-04-15 04:34:44 +02:00
|
|
|
</div>
|
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}}
|
2017-04-15 04:34:44 +02:00
|
|
|
<div class="message_header message_header_private_message dark_background">
|
2014-03-03 21:59:29 +01:00
|
|
|
<div class="message-header-wrapper">
|
2017-04-15 04:34:44 +02:00
|
|
|
<div class="message-header-contents">
|
|
|
|
<a class="message_label_clickable narrows_by_recipient stream_label"
|
|
|
|
href="{{pm_with_url}}"
|
2021-04-14 03:04:02 +02:00
|
|
|
title="{{#tr}}Narrow to your private messages with {display_reply_to}{{/tr}}">
|
|
|
|
{{#tr}}You and {display_reply_to}{{/tr}}
|
2017-04-15 04:34:44 +02:00
|
|
|
</a>
|
2016-08-18 22:18:33 +02:00
|
|
|
|
2019-02-08 20:11:21 +01:00
|
|
|
<span class="recipient_row_date {{#if group_date_divider_html}}{{else}}hide-date{{/if}}">{{{date}}}</span>
|
2017-04-15 04:34:44 +02:00
|
|
|
</div>
|
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}}
|