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-06-08 22:05:07 +02:00
|
|
|
<i class="icon-vector-lock invite-stream-icon" title="{{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 }}
|
|
|
|
<a class="message_label_clickable narrows_by_subject"
|
|
|
|
href="{{topic_url}}"
|
|
|
|
title="{{#tr this}}Narrow to stream "__display_recipient__", topic "__subject__"{{/tr}}">
|
|
|
|
{{#if use_match_properties}}
|
|
|
|
{{{match_subject}}}
|
|
|
|
{{else}}
|
|
|
|
{{subject}}
|
|
|
|
{{/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">
|
2017-04-15 04:34:44 +02:00
|
|
|
{{! edit subject pencil icon }}
|
|
|
|
{{#if always_visible_topic_edit}}
|
2018-03-05 19:52:18 +01:00
|
|
|
<i class="icon-vector-pencil always_visible_topic_edit" {{#unless realm_allow_message_editing}}style="display: none"{{/unless}}></i>
|
2017-04-15 04:34:44 +02:00
|
|
|
{{else}}
|
|
|
|
{{#if on_hover_topic_edit}}
|
2018-03-05 19:52:18 +01:00
|
|
|
<i class="icon-vector-pencil on_hover_topic_edit" {{#unless realm_allow_message_editing}}style="display: none"{{/unless}}></i>
|
2017-04-15 04:34:44 +02:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{! exterior links (e.g. to a trac ticket) }}
|
|
|
|
{{#each subject_links}}
|
2017-07-19 00:54:35 +02:00
|
|
|
<a href="{{this}}" target="_blank" class="no-underline">
|
2017-04-15 04:34:44 +02:00
|
|
|
<i class="icon-vector-external-link-sign"></i>
|
|
|
|
</a>
|
|
|
|
{{/each}}
|
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
|
|
|
|
2017-08-28 06:54:31 +02:00
|
|
|
<i class="icon-vector-eye-close on_hover_topic_mute" data-stream-id="{{stream_id}}" data-topic-name="{{subject}}" title="{{t 'Mute topic' }} (M)"></i>
|
|
|
|
<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}}
|