hardlounge/client/templates/msg.tpl

23 lines
465 B
Smarty
Raw Normal View History

2014-08-25 23:13:47 +00:00
{{#each messages}}
2014-09-14 18:49:42 +00:00
<div class="msg {{type}} {{#if self}}self{{/if}}">
2014-08-25 23:13:47 +00:00
<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>
2014-09-27 19:17:05 +00:00
{{#equal type "toggle"}}
<div class="force-newline">
<button id="toggle-{{id}}" class="toggle-button">···</button>
</div>
2014-08-25 23:13:47 +00:00
{{else}}
{{{uri text}}}
{{/equal}}
</span>
</div>
{{/each}}