hardlounge/client/templates/msg.tpl
2014-09-27 12:17:13 -07:00

23 lines
465 B
Smarty

{{#each messages}}
<div class="msg {{type}} {{#if self}}self{{/if}}">
<span class="time">
{{tz time}}
</span>
<span class="from">
{{#if from}}
<button class="user">{{from}}</button>
{{/if}}
</span>
<span class="text">
<em class="type">{{type}}</em>
{{#equal type "toggle"}}
<div class="force-newline">
<button id="toggle-{{id}}" class="toggle-button">···</button>
</div>
{{else}}
{{{uri text}}}
{{/equal}}
</span>
</div>
{{/each}}