Page.FollowSone.Title=Follow Sone - Sone
Page.Logout.Title=Logout - Sone
+
+View.Post.DeleteLink=Delete Post
+View.Post.SendReply=Post Reply!
--- /dev/null
+<div class="post">
+ <div class="author"><a href="viewSone.html?sone=<% post.sone.id>"><% post.sone.niceName|html></a></div>
+ <div class="text"><% post.text|html></div>
+ <div class="time"><a href="viewPost.html?post=<% post.id>"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></a></div>
+ <%if post.sone.isCurrent><div class="delete"><a href="deletePost.html?post="><%= View.Post.DeleteLink|l10n|html></a></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"><%= View.Post.SendReply|l10n|html></button>
+ </form>
+</div>
<div id="posts">
<%foreach posts post>
- <div class="post">
- <div class="author"><a href="viewSone.html?sone=<% post.sone.id>"><% post.sone.niceName|html></a></div>
- <div class="text"><% post.text|html></div>
- <div class="time"><a href="viewPost.html?post=<% post.id>"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></a></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>
+ <%include include/viewPost.html>
<%foreachelse>
<div><%= Page.Index.PostList.Text.NoPostYet|l10n|html></div>
<%/foreach>
<h1><%= Page.ViewPost.Page.Title|l10n|insert needle="{sone}" key=post.sone.niceName|html></h1>
- <div class="post">
- <div class="author"><a href="viewSone.html?sone=<% post.sone.id>"><% post.sone.niceName|html></a></div>
- <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"><%= Page.ViewPost.Button.PostReply|l10n|html></button>
- </form>
- </div>
+ <%include include/viewPost.html>
</div>