2012-10-10 16:29:48 +02:00
|
|
|
{{! Client-side Mustache template for rendering messages.}}
|
2012-10-02 20:47:01 +02:00
|
|
|
|
2012-10-10 16:37:15 +02:00
|
|
|
{{! Because we use table-layout: fixed for the Message table,
|
2012-10-02 20:47:01 +02:00
|
|
|
all the column widths are computed from the first row;
|
|
|
|
these CSS classes specify the widths for that first,
|
|
|
|
collapsed row. (Otherwise, colspan breaks everything).}}
|
2012-10-02 23:19:33 +02:00
|
|
|
{{#include_layout_row}}
|
2013-12-09 20:15:33 +01:00
|
|
|
<div class="ztable_layout_row">
|
|
|
|
</div>
|
2012-10-02 23:19:33 +02:00
|
|
|
{{/include_layout_row}}
|
2012-10-02 20:47:01 +02:00
|
|
|
|
2012-10-10 16:29:48 +02:00
|
|
|
{{#each messages}}
|
2012-09-24 23:26:32 +02:00
|
|
|
{{#with this}}
|
2012-09-24 22:36:09 +02:00
|
|
|
{{#include_bookend}}
|
2013-12-09 20:15:33 +01:00
|
|
|
<div class="bookend_tr">
|
|
|
|
<div class="bookend{{#if subscribed}} sub-unsub-message{{/if}}{{#if unsubscribed}} sub-unsub-message{{/if}}">
|
2013-04-03 23:30:06 +02:00
|
|
|
{{#if subscribed}}
|
2013-04-17 05:52:20 +02:00
|
|
|
<span>--- Subscribed to stream {{subscribed}} ---</span>
|
2013-04-03 23:30:06 +02:00
|
|
|
{{/if}}
|
|
|
|
{{#if unsubscribed}}
|
2013-04-17 05:52:20 +02:00
|
|
|
<span>--- Unsubscribed from stream {{unsubscribed}} ---</span>
|
2013-04-03 23:30:06 +02:00
|
|
|
{{/if}}
|
2013-12-09 20:15:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-09-24 22:36:09 +02:00
|
|
|
{{/include_bookend}}
|
|
|
|
|
2013-06-24 23:16:50 +02:00
|
|
|
{{#if show_date}}
|
2013-12-09 20:15:33 +01:00
|
|
|
<div class="date_row" data-zid="{{id}}"><div colspan="4">{{{show_date}}}</div></div>
|
2013-06-24 23:16:50 +02:00
|
|
|
{{/if}}
|
|
|
|
|
2013-07-25 22:08:16 +02:00
|
|
|
{{#if is_summary}}
|
2013-12-09 20:15:33 +01:00
|
|
|
<div zid="{{first_message_id}}" data-messages="{{message_ids}}" class="summary_row selectable_row{{#include_footer}} last_message{{/include_footer}}{{^is_stream}} summary_row_private_message{{/is_stream}}">
|
|
|
|
<div class="message_header message_header_stream right_part" style="box-shadow:inset 9px 0px {{background_color}};">
|
2013-08-27 16:21:02 +02:00
|
|
|
|
|
|
|
{{! [+] }}
|
2013-09-11 20:42:25 +02:00
|
|
|
<i class="messages-expand icon-vector-expand-alt"></i>
|
2013-08-27 16:21:02 +02:00
|
|
|
|
|
|
|
{{#if is_stream}}
|
|
|
|
|
|
|
|
{{! invite-only lock icon }}
|
|
|
|
{{#if invite_only}}
|
|
|
|
<i class="icon-vector-lock" title="This is an invite-only stream"></i>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{! stream }}
|
2013-10-03 23:05:46 +02:00
|
|
|
<a class="message_label_clickable narrows_by_recipient stream_label"
|
2013-12-20 00:02:05 +01:00
|
|
|
href="{{stream_url}}"
|
|
|
|
title="Narrow to stream "{{display_recipient}}"">{{display_recipient}}
|
2013-10-03 23:05:46 +02:00
|
|
|
</a>
|
2013-08-27 16:21:02 +02:00
|
|
|
|
|
|
|
{{! > }}
|
|
|
|
|
|
|
|
<i class="icon-vector-narrow icon-vector-small"></i>
|
|
|
|
<span class="copy-paste-text">></span>
|
|
|
|
|
|
|
|
{{! topic }}
|
|
|
|
<span class="stream_topic">
|
2013-10-03 23:05:46 +02:00
|
|
|
<a class="message_label_clickable narrows_by_subject"
|
2013-12-20 00:02:05 +01:00
|
|
|
href="{{topic_url}}"
|
|
|
|
title="Narrow to stream "{{display_recipient}}", topic "{{subject}}"">
|
2013-08-27 16:21:02 +02:00
|
|
|
{{subject}}
|
2013-10-03 23:05:46 +02:00
|
|
|
</a>
|
2013-08-27 16:21:02 +02:00
|
|
|
|
|
|
|
{{! exterior links (e.g. to a trac ticket) }}
|
|
|
|
{{#each subject_links}}
|
|
|
|
<a href="{{this}}" target="_blank">
|
2013-10-03 21:39:31 +02:00
|
|
|
<i class="icon-vector-external-link-sign"></i>
|
|
|
|
</a>
|
2013-08-27 16:21:02 +02:00
|
|
|
{{/each}}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
|
|
|
|
{{! You and Somebody Else, links to PM narrow}}
|
2013-10-03 23:05:46 +02:00
|
|
|
<a class="message_label_clickable narrows_by_recipient"
|
2013-12-20 00:02:05 +01:00
|
|
|
href="{{pm_with_url}}"
|
|
|
|
title="Narrow to your private messages with {{display_reply_to}}">
|
2013-08-27 16:21:02 +02:00
|
|
|
You and {{display_reply_to}}
|
2013-10-03 23:05:46 +02:00
|
|
|
</a>
|
2013-08-27 16:21:02 +02:00
|
|
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{! "(5 read)" or something similar}}
|
|
|
|
({{count}} {{summary_adjective}})
|
|
|
|
|
2013-12-09 20:15:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-07-25 22:08:16 +02:00
|
|
|
{{else}}
|
|
|
|
|
2012-09-20 21:33:45 +02:00
|
|
|
{{#include_recipient}}
|
2013-12-09 20:15:33 +01:00
|
|
|
<div zid="{{id}}" class="recipient_row" data-messages="{{message_ids}}">
|
2012-10-10 23:31:26 +02:00
|
|
|
{{#if is_stream}}
|
2013-12-09 20:15:33 +01:00
|
|
|
<div class="message_header message_header_stream right_part">
|
|
|
|
<div class="message-header-contents" style="box-shadow:inset 9px 0px {{background_color}};">
|
2013-12-20 00:02:05 +01:00
|
|
|
{{! [-] }}
|
|
|
|
{{#if collapsible}}
|
|
|
|
<i class="messages-collapse icon-vector-collapse-alt"></i>
|
|
|
|
{{/if}}
|
2013-10-03 21:36:50 +02:00
|
|
|
|
2013-12-20 00:02:05 +01:00
|
|
|
{{! invite only lock }}
|
|
|
|
{{#if invite_only}}
|
|
|
|
<i class="icon-vector-lock" title="This is an invite-only stream"></i>
|
|
|
|
{{/if}}
|
2013-10-03 21:36:50 +02:00
|
|
|
|
2013-12-20 00:02:05 +01:00
|
|
|
{{! stream link }}
|
|
|
|
<a class="message_label_clickable narrows_by_recipient stream_label"
|
|
|
|
href="{{stream_url}}"
|
|
|
|
title="Narrow to stream "{{display_recipient}}"">
|
|
|
|
{{display_recipient}}
|
2013-10-03 23:05:46 +02:00
|
|
|
</a>
|
2013-10-03 21:36:50 +02:00
|
|
|
|
2013-12-20 00:02:05 +01:00
|
|
|
{{! > (narrowing icon) }}
|
|
|
|
|
|
|
|
<i class="icon-vector-narrow icon-vector-small"></i>
|
|
|
|
<span class="copy-paste-text">></span>
|
|
|
|
|
|
|
|
|
|
|
|
{{! topic stuff }}
|
|
|
|
<span class="stream_topic">
|
|
|
|
{{! topic link }}
|
|
|
|
<a class="message_label_clickable narrows_by_subject"
|
|
|
|
href="{{topic_url}}"
|
|
|
|
title="Narrow to stream "{{display_recipient}}", topic "{{subject}}"">
|
|
|
|
{{#if ../../../../../use_match_properties}}
|
|
|
|
{{{match_subject}}}
|
|
|
|
{{else}}
|
|
|
|
{{subject}}
|
|
|
|
{{/if}}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
{{! edit subject pencil icon }}
|
|
|
|
{{#if always_visible_topic_edit}}
|
|
|
|
<i class="icon-vector-pencil always_visible_topic_edit"></i>
|
|
|
|
{{else}}
|
2013-11-07 00:20:14 +01:00
|
|
|
{{#if on_hover_topic_edit}}
|
2013-12-20 00:02:05 +01:00
|
|
|
<i class="icon-vector-pencil on_hover_topic_edit"></i>
|
2013-11-07 00:20:14 +01:00
|
|
|
{{/if}}
|
2013-12-20 00:02:05 +01:00
|
|
|
{{/if}}
|
2013-10-03 21:36:50 +02:00
|
|
|
|
2013-12-20 00:02:05 +01:00
|
|
|
{{! exterior links (e.g. to a trac ticket) }}
|
|
|
|
{{#each subject_links}}
|
2013-10-03 21:36:50 +02:00
|
|
|
<a href="{{this}}" target="_blank">
|
|
|
|
<i class="icon-vector-external-link-sign"></i>
|
2013-10-03 21:39:31 +02:00
|
|
|
</a>
|
2013-12-20 00:02:05 +01:00
|
|
|
{{/each}}
|
|
|
|
</span>
|
2013-10-03 21:36:50 +02:00
|
|
|
|
2013-12-20 00:02:05 +01:00
|
|
|
<span class="topic_edit">
|
2013-08-16 23:45:13 +02:00
|
|
|
<span class="topic_edit_form" id="{{id}}"></span>
|
2013-12-20 00:02:05 +01:00
|
|
|
</span>
|
2013-12-09 20:15:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-09-28 17:19:31 +02:00
|
|
|
{{else}}
|
2013-12-09 20:15:33 +01:00
|
|
|
<div class="message_header message_header_private_message right_part dark_background">
|
|
|
|
<div class="message-header-contents">
|
2013-08-23 01:04:34 +02:00
|
|
|
{{#if collapsible}}
|
2013-09-11 20:42:25 +02:00
|
|
|
<i class="messages-collapse icon-vector-collapse-alt"></i>
|
2013-08-23 01:04:34 +02:00
|
|
|
{{/if}}
|
2013-10-03 23:05:46 +02:00
|
|
|
<a class="message_label_clickable narrows_by_recipient"
|
2013-12-20 00:02:05 +01:00
|
|
|
href="{{pm_with_url}}"
|
|
|
|
title="Narrow to your private messages with {{display_reply_to}}">
|
2013-10-09 14:33:46 +02:00
|
|
|
You and {{display_reply_to}}
|
|
|
|
</a>
|
2013-12-09 20:15:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-09-28 17:19:31 +02:00
|
|
|
{{/if}}
|
2013-12-09 20:15:33 +01:00
|
|
|
</div>
|
2012-09-20 21:33:45 +02:00
|
|
|
{{/include_recipient}}
|
2013-12-09 20:15:33 +01:00
|
|
|
<div zid="{{id}}" id="{{dom_id}}"
|
2013-12-19 17:03:08 +01:00
|
|
|
class="message_row{{^is_stream}} private-message{{/is_stream}}{{#include_sender}} include-sender{{/include_sender}}{{#contains_mention}} mention{{/contains_mention}}{{#include_footer}} last_message{{/include_footer}}{{#unread}} unread{{/unread}} {{#if local_id}}local{{/if}} selectable_row">
|
2014-01-06 18:01:21 +01:00
|
|
|
<div class="unread_marker"></div>
|
2013-12-09 20:15:33 +01:00
|
|
|
<div class="messagebox{{^include_sender}} prev_is_same_sender{{/include_sender}}{{^is_stream}} private-message{{/is_stream}}">
|
|
|
|
<div class="messagebox-border" style="box-shadow:inset 9px 0px {{background_color}};">
|
|
|
|
<div class="messagebox-content">
|
|
|
|
<span class="pointer_icon"><i class="icon-vector-caret-right"></i></span>
|
2013-12-20 00:02:05 +01:00
|
|
|
<div class="message_top_line">
|
|
|
|
{{#include_sender}}
|
|
|
|
<span class="message_sender{{^status_message}} sender_info_hover{{/status_message}}">
|
|
|
|
{{! See ../js/notifications.js for another user of avatar_url. }}
|
|
|
|
<div class="inline_profile_picture{{#status_message}} sender_info_hover{{/status_message}}"
|
|
|
|
style="background-image: url('{{small_avatar_url}}');"/>
|
|
|
|
<span class="{{^status_message}}sender_name{{/status_message}}{{#status_message}}sender-status{{/status_message}}">
|
|
|
|
{{#unless status_message}}
|
|
|
|
{{sender_full_name}}
|
|
|
|
{{else}}
|
|
|
|
<span class="sender_name sender_info_hover">{{sender_full_name}}</span>
|
|
|
|
{{{ status_message }}}
|
|
|
|
{{/unless}}
|
|
|
|
</span>
|
2013-11-08 02:00:12 +01:00
|
|
|
</span>
|
2013-12-20 00:02:05 +01:00
|
|
|
{{/include_sender}}
|
|
|
|
<div class="message_controls">
|
|
|
|
<div class="star">
|
|
|
|
<span class="message_star {{#if starred}}icon-vector-star{{else}}icon-vector-star-empty empty-star{{/if}}"
|
|
|
|
title="{{#if starred}}Unstar{{else}}Star{{/if}} this message"></span>
|
|
|
|
</div>
|
2013-12-19 17:03:08 +01:00
|
|
|
<span class="message_time {{#if local_id}}notvisible{{/if}}">{{timestr}}</span>
|
2013-12-20 00:02:05 +01:00
|
|
|
<div class="info actions_hover">
|
|
|
|
<i class="icon-vector-chevron-down"></i>
|
|
|
|
</div>
|
2013-12-19 17:03:08 +01:00
|
|
|
<div class="message_failed {{#unless failed_request}}notvisible{{/unless}}">
|
2014-01-02 19:39:22 +01:00
|
|
|
<span class="failed_text">Not delivered </span><i class="icon-vector-refresh refresh-failed-message"></i><i class="icon-vector-pencil edit-failed-message"></i><i class="icon-vector-remove-sign remove-failed-message"></i>
|
2013-12-19 17:03:08 +01:00
|
|
|
</div>
|
2013-12-20 00:02:05 +01:00
|
|
|
</div>
|
2013-05-24 00:03:39 +02:00
|
|
|
</div>
|
2013-12-20 00:02:05 +01:00
|
|
|
<div class="message_content">{{#unless status_message}}{{#if ../../../../use_match_properties}}{{{match_content}}}{{else}}{{{content}}}{{/if}}{{/unless}}</div>
|
|
|
|
<div class="message_edit">
|
2013-05-15 00:22:16 +02:00
|
|
|
<div class="message_edit_form" id="{{id}}"></div>
|
2013-12-20 00:02:05 +01:00
|
|
|
</div>
|
|
|
|
<div class="message_expander message_length_controller" title="See the rest of this message">[More...]</div>
|
|
|
|
<div class="message_condenser message_length_controller" title="Make this message take up less space on the screen">[Condense this message]</div>
|
|
|
|
{{#if last_edit_timestr}}
|
|
|
|
<div class="message_edit_notice">Last edited: {{{last_edit_timestr}}}</div>
|
|
|
|
{{/if}}
|
2013-12-09 20:15:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-07-25 22:08:16 +02:00
|
|
|
|
|
|
|
{{/if}}
|
2012-09-24 23:26:32 +02:00
|
|
|
{{/with}}
|
|
|
|
{{/each}}
|
2013-04-10 23:38:30 +02:00
|
|
|
|
|
|
|
{{#if trailing_bookend}}
|
2013-12-09 20:15:33 +01:00
|
|
|
<div id="trailing_bookend" class="bookend_tr">
|
2014-01-06 16:24:26 +01:00
|
|
|
<div class="bookend">
|
2013-10-09 14:33:46 +02:00
|
|
|
<center>{{trailing_bookend}}</center>
|
|
|
|
<span class="tiny"><p></p></span>
|
2013-12-09 20:15:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-04-10 23:38:30 +02:00
|
|
|
{{/if}}
|