mirror of
https://github.com/thelounge/thelounge
synced 2024-12-18 16:33:16 +00:00
25 lines
568 B
Smarty
25 lines
568 B
Smarty
{{#each messages}}
|
|
<div class="msg {{type}} {{#if self}}self{{/if}}">
|
|
<span class="time">
|
|
{{tz time}}
|
|
</span>
|
|
<span class="from">
|
|
{{#if from}}
|
|
<a href="" class="user" style="color: #{{stringcolor from}}">{{mode}}{{from}}</a>
|
|
{{/if}}
|
|
</span>
|
|
<span class="text">
|
|
<em class="type">{{type}}</em>
|
|
{{#equal type "toggle"}}
|
|
<div class="force-newline">
|
|
<button id="toggle-{{id}}" class="toggle-button">···</button>
|
|
</div>
|
|
{{#if toggle}}
|
|
{{partial "toggle"}}
|
|
{{/if}}
|
|
{{else}}
|
|
{{{parse text}}}
|
|
{{/equal}}
|
|
</span>
|
|
</div>
|
|
{{/each}}
|