thelounge/client/views/msg.tpl

24 lines
683 B
Smarty
Raw Normal View History

2016-10-03 20:03:19 +02:00
<div class="msg {{type}}{{#if self}} self{{/if}}{{#if highlight}} highlight{{/if}}" id="msg-{{id}}" data-time="{{time}}">
<span class="time" title="{{localetime time}}">
2014-08-26 01:13:47 +02:00
{{tz time}}
</span>
<span class="from">
{{#if from}}
<span role="button" class="user {{colorClass from}}" data-name="{{from}}">{{mode}}{{from}}</span>
2014-08-26 01:13:47 +02:00
{{/if}}
</span>
{{#equal type "toggle"}}
<span class="text">
2014-09-28 01:47:04 +02:00
<div class="force-newline">
2016-05-08 01:38:55 +02:00
<button id="toggle-{{id}}" class="toggle-button" aria-label="Toggle prefetched media">···</button>
2014-09-28 01:47:04 +02:00
</div>
{{#if toggle}}
2016-12-18 16:53:28 +01:00
{{> toggle}}
2014-09-28 01:47:04 +02:00
{{/if}}
</span>
{{else}}
<span class="text">{{{parse text}}}</span>
{{/equal}}
2014-08-26 01:13:47 +02:00
</span>
</div>