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}}"
|
|
|
|
style="background: {{background_color}}; border-left-color: {{background_color}};"
|
|
|
|
href="{{stream_url}}"
|
|
|
|
title="{{#tr this}}Narrow to stream "__display_recipient__"{{/tr}}">
|
|
|
|
{{! invite only lock }}
|
|
|
|
{{#if invite_only}}
|
|
|
|
<i class="icon-vector-lock invite-stream-icon" title="{{t 'This is an invite-only stream' }}"></i>
|
|
|
|
{{/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}}
|
|
|
|
<i class="icon-vector-pencil always_visible_topic_edit"></i>
|
|
|
|
{{else}}
|
|
|
|
{{#if on_hover_topic_edit}}
|
|
|
|
<i class="icon-vector-pencil on_hover_topic_edit"></i>
|
2017-08-20 03:08:53 +02:00
|
|
|
{{else}}
|
|
|
|
<i class="icon-vector-pencil on_hover_topic_edit" style="display: none"></i>
|
2017-04-15 04:34:44 +02:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2014-03-03 21:59:29 +01:00
|
|
|
|
2017-04-15 04:34:44 +02:00
|
|
|
{{! 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}}
|