X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FviewSone.html;h=60d65639ee52205c7399c4d90a1f4dc108a5efc7;hb=fb3be9108a728d9330eabb8e6e5b36ab1af685da;hp=323446af654262229314d7079ed71585f7d74b9c;hpb=861afcbbf8614375bf1359cdd80047686e93c2cc;p=Sone.git
diff --git a/src/main/resources/templates/viewSone.html b/src/main/resources/templates/viewSone.html
index 323446a..60d6563 100644
--- a/src/main/resources/templates/viewSone.html
+++ b/src/main/resources/templates/viewSone.html
@@ -8,59 +8,43 @@
<%else>
-
- <%foreach sone.posts post>
-
-
-
<% post.text|html>
-
<% post.time|date format="MMM d, yyyy, HH:mm:ss">
-
- <%foreach post.replies reply>
-
-
-
<% reply.text|html>
-
<% reply.time|date format="MMM d, yyyy, HH:mm:ss">
-
- <%/foreach>
-
-
-
+ <%getpage parameter=postPage>
+ <%paginate list=sone.posts pagesize=2>
+ <%= postPage|store key=pageParameter>
+ <%include include/pagination.html>
+ <%foreach pagination.items post>
+ <%first>
+
<%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html>
+ <%/first>
+ <%include include/viewPost.html>
<%foreachelse>
<%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html>
<%/foreach>
+ <%include include/pagination.html>
-
+
- <%foreach sone.friends friend>
- <%first>
-
- <%/last>
+ <%getpage parameter=sonePage>
+ <%paginate list=sone.friends pagesize=2>
+ <%= sonePage|store key=pageParameter>
+ <%include include/pagination.html>
+ <%foreach pagination.items sone>
+ <%include include/viewSone.html>
<%foreachelse>
<%= Page.ViewSone.Following.FollowingNone.Text|l10n|html>
<%/foreach>
+ <%include include/pagination.html>
<%/if>