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}}"
|
|
|
|
title="{{#tr this}}Narrow to stream "__display_recipient__"{{/tr}}">
|
|
|
|
{{! 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}}
|
|
|
|
{{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}}"
|
2018-11-15 17:13:49 +01:00
|
|
|
title="{{#tr this}}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}}
|
2018-10-19 09:43:22 +02:00
|
|
|
<a href="{{this}}" target="_blank" class="no-underline">
|
2018-11-08 18:21:54 +01:00
|
|
|
<i class="fa fa-external-link-square" 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}}
|
2018-11-08 18:21:54 +01:00
|
|
|
<i class="fa fa-pencil always_visible_topic_edit" {{#unless realm_allow_message_editing}}style="display: none"{{/unless}} role="button" tabindex="0" aria-label="{{t 'Edit' }}"></i>
|
2017-04-15 04:34:44 +02:00
|
|
|
{{else}}
|
|
|
|
{{#if on_hover_topic_edit}}
|
2018-11-08 18:21:54 +01:00
|
|
|
<i class="fa fa-pencil on_hover_topic_edit" {{#unless realm_allow_message_editing}}style="display: none"{{/unless}} role="button" tabindex="0" aria-label="{{t 'Edit' }}"></i>
|
2017-04-15 04:34:44 +02:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2014-03-03 21:59:29 +01:00
|
|
|
|
2017-08-28 06:54:31 +02:00
|
|
|
<span class="topic_edit">
|
|
|
|
<span class="topic_edit_form" id="{{id}}"></span>
|
|
|
|
</span>
|
2016-08-18 22:18:33 +02:00
|
|
|
|
2018-11-15 17:13:49 +01:00
|
|
|
<i class="fa fa-eye-slash on_hover_topic_mute" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" title="{{t 'Mute topic' }} (M)" role="button" tabindex="0" aria-label="{{t 'Mute topic' }} (M)"></i>
|
2017-08-28 06:54:31 +02:00
|
|
|
<span class="recipient_row_date {{#if show_date}}{{else}}hide-date{{/if}}">{{{date}}}</span>
|
|
|
|
</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}}"
|
|
|
|
title="{{#tr this}}Narrow to your private messages with __display_reply_to__{{/tr}}">
|
|
|
|
{{#tr this}}You and __display_reply_to__{{/tr}}
|
|
|
|
</a>
|
2016-08-18 22:18:33 +02:00
|
|
|
|
2017-04-15 04:34:44 +02:00
|
|
|
<span class="recipient_row_date {{#if show_date}}{{else}}hide-date{{/if}}">{{{date}}}</span>
|
|
|
|
</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}}
|