Paginate known Sones.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Oct 2010 10:08:52 +0000 (12:08 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Oct 2010 10:08:52 +0000 (12:08 +0200)
src/main/resources/templates/knownSones.html

index 862c01e..8a5afbd 100644 (file)
        <h1><%= Page.KnownSones.Page.Title|l10n|html></h1>
 
        <div id="known-sones">
-               <%foreach knownSones sone>
+               <%getpage parameter=page>
+               <%paginate list=knownSones pagesize=2>
+               <%= page|store key=pageParameter>
+               <%include include/pagination.html>
+               <%foreach pagination.items sone>
                        <%include include/viewSone.html>
                <%foreachelse>
                        <div><%= Page.KnownSones.Text.NoKnownSones|l10n|html></div>
                <%/foreach>
+               <%include include/pagination.html>
        </div>
 
 <%include include/tail.html>