From: David ‘Bombe’ Roden <bombe@pterodactylus.net> Date: Sat, 16 Oct 2010 00:36:52 +0000 (+0200) Subject: Show replies and reply posting form on index page. X-Git-Tag: 0.1-RC1~303 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=284259bbc04105105abb089680ea538f2fb8709d;p=Sone.git Show replies and reply posting form on index page. --- diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 9046406..c18a99d 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -33,6 +33,21 @@ <div class="text"><% post.text|html></div> <div class="time"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></div> </div> + <%foreach post.replies reply> + <div class="reply"> + <div class="author"><a href="viewSone.html?sone=<% reply.sone.id>"><% reply.sone.niceName|html></a></div> + <div class="text"><% reply.text|html></div> + <div class="time"><% reply.time|date format="MMM d, yyyy, HH:mm:ss"></div> + </div> + <%/foreach> + <div class="create-reply"> + <form method="post" action="createReply.html"> + <input type="hidden" name="formPassword" value="<% formPassword|html>" /> + <input type="hidden" name="post" value="<% post.id>" /> + <input type="text" name="text" value="" /> + <button type="submit">Post Reply</button> + </form> + </div> <%foreachelse> <div><%= Page.Index.PostList.Text.NoPostYet|l10n|html></div> <%/foreach>