Put Sone loading into its own include file.
[Sone.git] / src / main / resources / templates / include / viewPost.html
1 <div id="<% post.id|html>" class="post">
2         <div>
3                 <div class="author profile-link"><a href="viewSone.html?sone=<% post.sone.id|html>"><% post.sone.niceName|html></a></div>
4                 <div class="text"><% post.text|html></div>
5         </div>
6         <div class="status-line">
7                 <div class="time"><a href="viewPost.html?post=<% post.id|html>"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></a></div>
8                 <%if post.sone.current><div class="delete"><a href="deletePost.html?post=<% post.id|html>"><%= View.Post.DeleteLink|l10n|html></a></div><%/if>
9         </div>
10         <div class="replies">
11                 <%foreach post.replies reply>
12                         <div class="reply">
13                                 <div>
14                                         <div class="author profile-link"><a href="viewSone.html?sone=<% reply.sone.id|html>"><% reply.sone.niceName|html></a></div>
15                                         <div class="text"><% reply.text|html></div>
16                                 </div>
17                                 <div class="status-line">
18                                         <div class="time"><% reply.time|date format="MMM d, yyyy, HH:mm:ss"></div>
19                                         <%if reply.sone.current>
20                                                 <form class="delete" action="deleteReply.html" method="post">
21                                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
22                                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
23                                                         <input type="hidden" name="reply" value="<% reply.id|html>" />
24                                                         <button type="submit"><%= View.Post.Reply.DeleteLink|l10n|html></button>
25                                                 </form>
26                                         <%/if>
27                                 </div>
28                         </div>
29                 <%/foreach>
30                 <div class="create-reply">
31                         <form method="post" action="createReply.html">
32                                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
33                                 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
34                                 <input type="hidden" name="post" value="<% post.id|html>" />
35                                 <input type="text" class="reply-input" name="text" value="" />
36                                 <button type="submit"><%= View.Post.SendReply|l10n|html></button>
37                         </form>
38                 </div>
39         </div>
40 </div>