-<div id="sone">
+<%include include/head.html>
- <h1><%= Page.Index.Page.Title|l10n|html></h1>
-
- <div>
- <form action="createPost.html" method="post">
- <div>
- <label for="text"><%= Page.Index.Label.Text|l10n|html></label>
- <textarea name="text"></textarea>
- </div>
- <div>
- <button type="submit"><%= Page.Index.Button.Post|l10n|html></button>
- </div>
- </form>
- </div>
+ <div class="page-id hidden">index</div>
<h1><%= Page.Index.PostList.Title|l10n|html></h1>
- <div>
- <%foreach posts post>
- <div class="post">
- <div class="author"><a href="viewSone?sone=<% post.sone.id>"><% post.sone.name|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>
+ <%include include/updateStatus.html>
+
+ <div id="posts">
+ <%= page|store key=pageParameter>
+ <%include include/pagination.html>
+ <%foreach pagination.items post>
+ <%include include/viewPost.html>
<%foreachelse>
<div><%= Page.Index.PostList.Text.NoPostYet|l10n|html></div>
<%/foreach>
+ <%include include/pagination.html>
</div>
-</div>
\ No newline at end of file
+<%include include/tail.html>