mirror of
https://github.com/thelounge/thelounge
synced 2024-12-30 06:13:07 +00:00
20 lines
394 B
Smarty
20 lines
394 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 "image"}}
|
|
<img src="{{text}}" class="image">
|
|
{{else}}
|
|
{{{uri text}}}
|
|
{{/equal}}
|
|
</span>
|
|
</div>
|
|
{{/each}}
|