2014-08-25 23:13:47 +00:00
|
|
|
{{#each messages}}
|
2014-09-14 17:06:56 +00:00
|
|
|
{{#if from_me}}
|
|
|
|
<div class="msg {{type}} from_me">
|
|
|
|
{{else}}
|
2014-08-25 23:13:47 +00:00
|
|
|
<div class="msg {{type}}">
|
2014-09-14 17:06:56 +00:00
|
|
|
{{/if}}
|
2014-08-25 23:13:47 +00:00
|
|
|
<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}}
|