swizzler/templates/message.html
The Dod 04efdbe8d5 We have search (#MostOfUrBase)
Also: support for mounting at non-root level (e.g. /swizzler)
via nginx etc. [might come in handy for public instances]

User search only returns @usernames, because it took too long to
get full name and avatar for all users (ah, the joys of NoJS).
Working on an iframe-based solution.
2014-04-05 13:42:20 +07:00

46 lines
1.8 KiB
HTML

<li class="list-group-item media">
{{#user}}
{{#username}}
<a class="{{#fromMe}}pull-right{{/fromMe}}{{^fromMe}}pull-left{{/fromMe}} thumbnail" href="{{site_root}}/user/{{.}}" title="@{{.}}'s profile">
<img class="media-object avatar" src="{{#avatar}}{{.}}{{/avatar}}{{^avatar}}/assets/img/genericPerson.png{{/avatar}}" alt="{{fullname}}">
</a>
{{/username}}
{{^username}}
<a class="pull-left thumbnail" href="#">
<img class="media-object avatar" src="{{site_root}}/assets/img/twister-64.jpg" alt="{{fullname}}">
</a>
{{/username}}
{{/user}}
<div class="media-body">
{{#user}}
{{#username}}
<h5 class="media-heading">
<span class="pull-right small">
<a title="View twist details" href="{{site_root}}/twist/{{.}}/{{k}}">{{time}}</a>
</span>
{{#rt_user}}
<small>
<a href="{{site_root}}/user/{{username}}" title="@{{username}}'s profile">{{fullname}}</a>
<span class="glyphicon glyphicon-retweet"></span>
</small>
{{/rt_user}}
<a href="{{site_root}}/user/{{.}}" title="@{{.}}'s profile"><strong>{{fullname}}</strong></a>
{{^is_twist}}{{#reply}}
<small>
<span class="glyphicon glyphicon-share-alt"></span>
{{#user}}<a title="Re: @{{username}}'s twist" href="{{site_root}}/twist/{{username}}/{{k}}">{{fullname}}</a>{{/user}}
</small>
{{/reply}}{{/is_twist}}
</h5>
{{/username}}
{{^username}}
<h5 class="media-heading">
<span class="pull-right small">{{time}}</span>
<a href="{{site_root}}/">{{fullname}}</a>
</h5>
{{/username}}
{{/user}}
{{{message}}}
</div>
</li>