Use a lot more <p> and a lot less <div>.
[Sone.git] / src / main / resources / templates / viewSone.html
index aad70ee..61ff39d 100644 (file)
@@ -4,36 +4,31 @@
 
                <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><%= Page.ViewSone.Page.TitleWithSone|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
-
-               <h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
-
                <%if ! sone.current>
-                       <%if sone.friend>
-                               <div><a href="unfollowSone.html?sone=<% sone.id>"><%= Page.ViewSone.UnfollowSone.Text|l10n|html></a></div>
-                       <%else>
-                               <div><a href="followSone.html?sone=<% sone.id>"><%= Page.ViewSone.FollowSone.Text|l10n|html></a></div>
-                       <%/if>
+                       <%include include/viewSone.html>
                <%/if>
 
+               <div id="import-key">
+                       <div class="import-key"><% sone.requestUri|html></div>
+               </div>
+
+               <h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
+
                <div id="posts">
-                       <%foreach sone.posts post>
+                       <%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>
-               </div>
-
-               <h1><%= Page.ViewSone.Following.Title|l10n|html></h1>
-
-               <div id="following">
-                       <%foreach sone.friends sone>
-                               <%include include/viewSone.html>
-                       <%/foreach>
+                       <%include include/pagination.html>
                </div>
 
        <%/if>