mirror of
https://github.com/thelounge/thelounge
synced 2024-12-20 09:23:12 +00:00
fabbb43e18
Your own messages now have a different color, and the possibility of changing colors etc in css of all things sent by yourself
24 lines
438 B
Smarty
24 lines
438 B
Smarty
{{#each messages}}
|
|
{{#if from_me}}
|
|
<div class="msg {{type}} from_me">
|
|
{{else}}
|
|
<div class="msg {{type}}">
|
|
{{/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}}
|