hardlounge/client/templates/msg.tpl

21 lines
370 B
Smarty
Raw Normal View History

2014-08-25 23:13:47 +00:00
{{#each messages}}
<div class="msg {{type}}">
<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 "image"}}
<img src="{{text}}" class="image">
{{else}}
{{{uri text}}}
{{/equal}}
</span>
</div>
{{/each}}