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}}
|
2012-10-15 22:35:46 +02:00
|
|
|
<tr class="ztable_layout_row">
|
2012-10-02 20:47:01 +02:00
|
|
|
<td class="ztable_col1" />
|
|
|
|
<td class="ztable_col2" />
|
|
|
|
<td class="ztable_col3" />
|
|
|
|
</tr>
|
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}}
|
2012-10-14 04:13:27 +02:00
|
|
|
<tr class="bookend_tr"><td /><td /><td class="bookend" /></tr>
|
2012-09-24 22:36:09 +02:00
|
|
|
{{/include_bookend}}
|
|
|
|
|
2012-09-20 21:33:45 +02:00
|
|
|
{{#include_recipient}}
|
2012-10-10 23:31:26 +02:00
|
|
|
{{#if is_stream}}
|
2012-11-14 23:33:13 +01:00
|
|
|
<tr zid="{{id}}" class="recipient_row">
|
2012-09-28 17:19:31 +02:00
|
|
|
<td colspan="2"
|
2012-10-19 16:24:24 +02:00
|
|
|
class="message_header message_header_stream left_part">
|
|
|
|
</td>
|
|
|
|
<td class="message_header message_header_stream right_part">
|
2012-11-14 23:33:13 +01:00
|
|
|
<span class="message_label_clickable narrows_by_recipient"
|
2012-10-31 17:45:50 +01:00
|
|
|
title="Narrow to stream "{{display_recipient}}"">{{display_recipient}}</span>
|
2012-10-19 16:24:24 +02:00
|
|
|
|
|
2012-11-14 23:33:13 +01:00
|
|
|
<span class="message_label_clickable narrows_by_subject"
|
2012-10-31 17:45:50 +01:00
|
|
|
title="Narrow to stream "{{display_recipient}}", subject "{{subject}}"">{{subject}}</span>
|
2012-10-19 16:24:24 +02:00
|
|
|
</td>
|
2012-09-26 20:27:38 +02:00
|
|
|
</tr>
|
2012-09-28 17:19:31 +02:00
|
|
|
{{else}}
|
2012-11-14 23:33:13 +01:00
|
|
|
<tr zid="{{id}}" class="recipient_row">
|
2012-10-19 16:24:24 +02:00
|
|
|
<td colspan="2"
|
|
|
|
class="message_header message_header_huddle left_part">
|
2012-10-17 22:03:00 +02:00
|
|
|
</td>
|
2012-11-14 23:33:13 +01:00
|
|
|
<td class="message_label_clickable narrows_by_recipient message_header message_header_huddle right_part"
|
2012-11-06 17:59:15 +01:00
|
|
|
title="Narrow to your private messages with {{display_reply_to}}">You and {{display_reply_to}}</td>
|
2012-09-20 21:33:45 +02:00
|
|
|
</tr>
|
2012-09-28 17:19:31 +02:00
|
|
|
{{/if}}
|
2012-09-20 21:33:45 +02:00
|
|
|
{{/include_recipient}}
|
2012-09-28 17:19:31 +02:00
|
|
|
<tr zid="{{id}}" id="{{dom_id}}"
|
2012-11-08 00:38:21 +01:00
|
|
|
class="message_row{{^is_stream}} private-message{{/is_stream}}{{#include_sender}} include-sender{{/include_sender}}">
|
2012-10-10 00:06:50 +02:00
|
|
|
<td class="message_picture">
|
2012-09-26 20:27:38 +02:00
|
|
|
{{#include_sender}}
|
2012-11-06 19:30:16 +01:00
|
|
|
<img class="img-rounded profile_picture user_info_hover"
|
2012-11-14 23:33:13 +01:00
|
|
|
src="https://secure.gravatar.com/avatar/{{gravatar_hash}}?d=identicon&s=30?stamp={{stamp}}"/>
|
2012-09-26 20:27:38 +02:00
|
|
|
{{/include_sender}}
|
2012-09-18 16:45:25 +02:00
|
|
|
</td>
|
2012-09-26 20:27:38 +02:00
|
|
|
<td class="pointer"><p></p></td>
|
2012-11-14 23:33:13 +01:00
|
|
|
<td class="messagebox{{^include_sender}} prev_is_same_sender{{/include_sender}}{{^is_stream}} private-message{{/is_stream}}">
|
2012-09-28 17:19:31 +02:00
|
|
|
{{#include_sender}}
|
2012-11-14 23:33:13 +01:00
|
|
|
<span class="message_sender user_info_hover">
|
2012-11-06 19:30:16 +01:00
|
|
|
<span class="sender_name">{{sender_full_name}}</span>
|
2012-10-09 23:58:24 +02:00
|
|
|
<span class="sender_email invisible">{{sender_email}}</span>
|
2012-09-18 16:45:25 +02:00
|
|
|
</span>
|
2012-09-13 22:00:11 +02:00
|
|
|
{{/include_sender}}
|
2012-11-21 17:27:04 +01:00
|
|
|
<span class="message_time"
|
2012-11-19 17:43:46 +01:00
|
|
|
title="{{full_date_str}}">{{{timestr}}}</span>
|
2012-10-10 00:02:28 +02:00
|
|
|
<div class="message_content">{{{content}}}</div>
|
2012-09-18 16:45:25 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2012-09-24 23:26:32 +02:00
|
|
|
{{/with}}
|
|
|
|
{{/each}}
|