zulip/zephyr/jstemplates/zephyr.html

29 lines
1.3 KiB
HTML
Raw Normal View History

{{! Client-side Mustache template for rendering zephyrs.}}
<td class="pointer"><p></p></td>
<td><p onclick="select_zephyr({{id}})">
{{#is_huddle}}
<span class="hidden zephyr_huddle_recipients_list
">{{#display_recipient}}{{name}},{{/display_recipient}}</span>
{{#display_recipient}}
<span class="label zephyr_label_clickable zephyr_huddle_recipient"
onclick="narrow_huddle({{id}})">{{name}}</span>
{{/display_recipient}}
&larr;
{{/is_huddle}}
{{#is_personal}}
<span class="label zephyr_label_clickable zephyr_personal_recipient"
onclick="narrow_personals({{id}})">{{display_recipient}}</span>
&larr;
{{/is_personal}}
{{#is_class}}
<span class="label zephyr_label_clickable zephyr_class"
onclick="narrow_class('{{display_recipient}}', {{id}})">{{display_recipient}}</span>
<span class="label zephyr_label_clickable zephyr_instance"
onclick="narrow_instance('{{display_recipient}}', '{{instance}}', {{id}})">{{instance}}</span>
{{/is_class}}
<span class="label zephyr_label_clickable zephyr_sender"
onclick="prepare_personal('{{sender}}')">{{sender}}</span>
<br />
{{{html_content}}}
</p></td>