Add missing separators.
[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         </div>
7         <div class="inner-part">
8                 <div>
9                         <div class="author profile-link"><a href="viewSone.html?sone=<% reply.sone.id|html>"><% reply.sone.niceName|html></a></div>
10                         <div class="text"><% reply.text></div>
11                 </div>
12                 <div class="reply-status-line status-line">
13                         <div class="time"><% reply.time|date format="MMM d, yyyy, HH:mm:ss"></div>
14                         <span class='separator'>·</span>
15                         <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>
16                         <%ifnull ! currentSone>
17                                 <form class="like like-reply<%if reply.liked> hidden<%/if>" action="like.html" method="post">
18                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
19                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
20                                         <input type="hidden" name="type" value="reply" />
21                                         <input type="hidden" name="reply" value="<% reply.id|html>" />
22                                         <button type="submit" value="1"><%= View.Post.LikeLink|l10n|html></button>
23                                 </form>
24                                 <form class="unlike unlike-reply<%if ! reply.liked> hidden<%/if>" action="unlike.html" method="post">
25                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
26                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
27                                         <input type="hidden" name="type" value="reply" />
28                                         <input type="hidden" name="reply" value="<% reply.id|html>" />
29                                         <button type="submit" value="1"><%= View.Post.UnlikeLink|l10n|html></button>
30                                 </form>
31                         <%/if>
32                         <%if !reply.sone.current>
33                                 <span class='separator'>·</span>
34                                 <form class="trust reply-trust<%if reply.sone.trust.assigned> hidden<%/if>" action="trust.html" method="post">
35                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
36                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
37                                         <input type="hidden" name="sone" value="<% reply.sone.id|html>" />
38                                         <button type="submit" title="<%= View.Trust.Tooltip.Trust|l10n|html>">✓</button>
39                                 </form>
40                                 <form class="distrust reply-distrust" action="distrust.html" method="post">
41                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
42                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
43                                         <input type="hidden" name="sone" value="<% reply.sone.id|html>" />
44                                         <button type="submit" title="<%= View.Trust.Tooltip.Distrust|l10n|html>">✗</button>
45                                 </form>
46                                 <form class="untrust reply-untrust<%if !reply.sone.trust.assigned> hidden<%/if>" action="untrust.html" method="post">
47                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
48                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
49                                         <input type="hidden" name="sone" value="<% reply.sone.id|html>" />
50                                         <button type="submit" title="<%= View.Trust.Tooltip.Untrust|l10n|html>">↶</button>
51                                 </form>
52                         <%/if>
53                         <%if reply.sone.current>
54                                 <span class='separator'>·</span>
55                                 <form class="delete delete-reply" action="deleteReply.html" method="post">
56                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
57                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
58                                         <input type="hidden" name="reply" value="<% reply.id|html>" />
59                                         <button type="submit"><%= View.Post.Reply.DeleteLink|l10n|html></button>
60                                 </form>
61                         <%/if>
62                 </div>
63         </div>
64 </div>