zulip/zephyr/jstemplates/zephyr.html

34 lines
1.5 KiB
HTML

{{! Client-side Mustache template for rendering zephyrs.}}
<td class="pointer"><p></p></td>
<td class="zephyr_recipient"><p onclick="select_zephyr({{id}})">
{{#is_huddle}}
<span class="hidden zephyr_huddle_recipients_list
">{{#display_recipient}}{{name}},{{/display_recipient}}</span>
{{#display_recipient}}
<span class="zephyr_label_clickable zephyr_huddle_recipient"
onclick="select_zephyr({{id}}); narrow_huddle();">{{name}}</span>
{{/display_recipient}}
&larr;
{{/is_huddle}}
{{#is_personal}}
<span class="zephyr_label_clickable zephyr_personal_recipient"
onclick="select_zephyr({{id}}); narrow_personals();">{{display_recipient}}</span>
&larr;
{{/is_personal}}
{{#is_class}}
<span class="zephyr_label_clickable zephyr_class"
onclick="select_zephyr({{id}}); narrow_class();">{{display_recipient}}</span>
<br/>
<span class="zephyr_label_clickable zephyr_instance"
onclick="select_zephyr({{id}}); narrow_instance();">{{instance}}</span>
{{/is_class}}
<br />
</td>
<td class="messagebox">
<img class="profile_picture" src="http://www.gravatar.com/avatar/{{gravatar_hash}}?d=identicon"/>
<span class="zephyr_label_clickable zephyr_sender"
onclick="prepare_personal('{{sender}}')">{{sender}}</span>
<p onclick="select_zephyr({{id}})" class="zephyr_text">
{{{html_content}}}
</p></td>