2
0
Fork 0
mirror of https://github.com/thelounge/thelounge synced 2024-12-28 05:13:10 +00:00
thelounge/client/views/msg.tpl

24 lines
733 B
Smarty
Raw Normal View History

<div class="msg {{type}}{{#if self}} self{{/if}}{{#if highlight}} highlight{{/if}}" id="msg-{{id}}" data-time="{{time}}" data-from="{{from}}">
2016-12-19 14:59:06 +00:00
<span class="time tooltipped tooltipped-e" aria-label="{{localetime time}}">
2014-08-25 23:13:47 +00:00
{{tz time}}
</span>
<span class="from">
{{#if from}}
<span role="button" class="user {{colorClass from}}" data-name="{{from}}">{{mode}}{{from}}</span>
2014-08-25 23:13:47 +00:00
{{/if}}
</span>
{{#equal type "toggle"}}
<span class="text">
2014-09-27 23:47:04 +00:00
<div class="force-newline">
2016-05-07 23:38:55 +00:00
<button id="toggle-{{id}}" class="toggle-button" aria-label="Toggle prefetched media">···</button>
2014-09-27 23:47:04 +00:00
</div>
{{#if toggle}}
2016-12-18 15:53:28 +00:00
{{> toggle}}
2014-09-27 23:47:04 +00:00
{{/if}}
</span>
{{else}}
<span class="text">{{{parse text}}}</span>
{{/equal}}
2014-08-25 23:13:47 +00:00
</span>
</div>