mirror of
https://github.com/thelounge/thelounge
synced 2024-12-23 10:53:07 +00:00
23 lines
632 B
Smarty
23 lines
632 B
Smarty
<div class="msg {{type}}{{#if self}} self{{/if}}{{#if highlight}} highlight{{/if}}">
|
|
<span class="time">
|
|
{{tz time}}
|
|
</span>
|
|
<span class="from">
|
|
{{#if from}}
|
|
<a href="#" class="user" style="color: #{{stringcolor from}}" data-name="{{from}}">{{mode}}{{from}}</a>
|
|
{{/if}}
|
|
</span>
|
|
{{#equal type "toggle"}}
|
|
<span class="text">
|
|
<div class="force-newline">
|
|
<button id="toggle-{{id}}" class="toggle-button" aria-label="Toggle prefetched media">···</button>
|
|
</div>
|
|
{{#if toggle}}
|
|
{{partial "toggle"}}
|
|
{{/if}}
|
|
</span>
|
|
{{else}}
|
|
<span class="text">{{{parse text}}}</span>
|
|
{{/equal}}
|
|
</span>
|
|
</div>
|