fabbb43e18
Your own messages now have a different color, and the possibility of changing colors etc in css of all things sent by yourself
25 lines
438 B
Smarty
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}}
|