From 244ee27268a2d8d4c5775d20b15117f8fcb7be6f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 31 May 2012 12:12:19 +0200 Subject: [PATCH] Paginate images within an album. --- src/main/resources/templates/imageBrowser.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index 7e62490..c999be2 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -373,8 +373,11 @@ <%/if> - <%foreach album.images image> - <%first>

<%= Page.ImageBrowser.Header.Images|l10n|html>

<%/first> + <%foreach album.images image|paginate pageSize=core.preferences.imagesPerPage page=request.page> + <%first> +

<%= Page.ImageBrowser.Header.Images|l10n|html>

+ <%include include/pagination.html pageParameter=="page"> + <%/first> <%if loop.count|mod divisor==3>
<%/if>
@@ -415,7 +418,10 @@ <%= false|store key==endRow> <%if loop.count|mod divisor==3 offset==1><%= true|store key==endRow><%/if> <%last><%= true|store key==endRow><%/last> - <%if endRow>
<%/if> + <%if endRow> +
+ <%include include/pagination.html pageParameter=="page"> + <%/if> <%/foreach> <%if album.sone.local> -- 2.7.4