thelounge/client/templates/msg.tpl
Fredrik Pettersen fabbb43e18 Added boolean flag if message was sent from "me"
Your own messages now have a different color, and the possibility of
changing colors etc in css of all things sent by yourself
2014-09-14 19:06:56 +02:00

25 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}}