From: David ‘Bombe’ Roden Date: Fri, 22 Oct 2010 09:57:48 +0000 (+0200) Subject: Paginate “view Sone” page. X-Git-Tag: 0.1-RC1~91 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fb3be9108a728d9330eabb8e6e5b36ab1af685da;p=Sone.git Paginate “view Sone” page. --- diff --git a/src/main/resources/templates/viewSone.html b/src/main/resources/templates/viewSone.html index 827aa11..60d6563 100644 --- a/src/main/resources/templates/viewSone.html +++ b/src/main/resources/templates/viewSone.html @@ -17,7 +17,11 @@
- <%foreach sone.posts post> + <%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> @@ -25,16 +29,22 @@ <%foreachelse>
<%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html>
<%/foreach> + <%include include/pagination.html>

<%= Page.ViewSone.Following.Title|l10n|html>

- <%foreach sone.friends sone> + <%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>