Show trust values below avatars.
[Sone.git] / src / main / resources / templates / include / viewReply.html
1 <a name="reply-<% reply.id|html>"></a>
2 <div id="<% reply.id|html>" class="reply<%if reply.new> new<%/if>">
3         <div class="reply-time hidden"><% reply.time|html></div>
4         <div class="avatar">
5                 <img src="/WoT/GetIdenticon?identity=<% reply.sone.id|html>&amp;width=36&height=36" width="36" height="36" alt="Avatar Image" />
6                 <%if !reply.sone.current>
7                         <br />
8                         <%ifnull !post.sone.trust.explicit><span class="trust"><% post.sone.trust.explicit></span><%/if>
9                         <%ifnull !post.sone.trust.implicit><span class="score"><% post.sone.trust.implicit></span><%/if>
10                         <%ifnull !post.sone.trust.distance><span class="rank"><% post.sone.trust.distance></span><%/if>
11                 <%/if>
12         </div>
13         <div class="inner-part">
14                 <div>
15                         <div class="author profile-link"><a href="viewSone.html?sone=<% reply.sone.id|html>"><% reply.sone.niceName|html></a></div>
16                         <div class="text"><% reply.text></div>
17                 </div>
18                 <div class="reply-status-line status-line">
19                         <div class="time"><% reply.time|date format="MMM d, yyyy, HH:mm:ss"></div>
20                         <div class="likes<%if reply.likes.size|match value=0> hidden<%/if>"><span title="<% reply.likes.soneNames|html>">⬆<span class="like-count"><% reply.likes.size></span></span></div>
21                         <%ifnull ! currentSone>
22                                 <form class="like like-reply<%if reply.liked> hidden<%/if>" action="like.html" method="post">
23                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
24                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
25                                         <input type="hidden" name="type" value="reply" />
26                                         <input type="hidden" name="reply" value="<% reply.id|html>" />
27                                         <button type="submit" value="1"><%= View.Post.LikeLink|l10n|html></button>
28                                 </form>
29                                 <form class="unlike unlike-reply<%if ! reply.liked> hidden<%/if>" action="unlike.html" method="post">
30                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
31                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
32                                         <input type="hidden" name="type" value="reply" />
33                                         <input type="hidden" name="reply" value="<% reply.id|html>" />
34                                         <button type="submit" value="1"><%= View.Post.UnlikeLink|l10n|html></button>
35                                 </form>
36                         <%/if>
37                         <%if reply.sone.current>
38                                 <form class="delete delete-reply" action="deleteReply.html" method="post">
39                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
40                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
41                                         <input type="hidden" name="reply" value="<% reply.id|html>" />
42                                         <button type="submit"><%= View.Post.Reply.DeleteLink|l10n|html></button>
43                                 </form>
44                         <%/if>
45                 </div>
46         </div>
47 </div>