-<div id="sone">
+<%include include/head.html>
<%ifnull sone.name>
<h1><%= Page.ViewSone.Page.TitleWithoutSone|l10n|html></h1>
- <div><%= Page.ViewSone.UnknownSone.Description|l10n|html></div>
+ <p><%= Page.ViewSone.UnknownSone.Description|l10n|html></p>
<%else>
- <h1></h1><%= Page.ViewSone.Page.TitleWithSone|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
+ <%if ! sone.current>
+ <%include include/viewSone.html>
+ <%/if>
<h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
<div id="posts">
- <%foreach sone.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"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></div>
- </div>
+ <%getpage parameter=postPage>
+ <%paginate list=sone.posts pagesize=25>
+ <%= postPage|store key=pageParameter>
+ <%include include/pagination.html>
+ <%foreach pagination.items post>
+ <%include include/viewPost.html>
<%foreachelse>
<div><%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html></div>
<%/foreach>
+ <%include include/pagination.html>
</div>
<%/if>
-</div>
+<%include include/tail.html>