From 309ce4a13f23fc42f3f4748272ccf2b07754f023 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 9 Jun 2012 12:27:39 +0200 Subject: [PATCH] Paginate albums on gallery page. --- src/main/resources/templates/imageBrowser.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index c999be2..a88c48f 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -596,12 +596,12 @@ <%elseif galleryRequested> - <%foreach albums album> + <%foreach albums album|paginate pageSize=core.preferences.imagesPerPage pageParameter=request.page pagination=albumPagination> <%first>

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

<%include include/pagination.html pagination=albumPagination pageParameter=="page"> <%/first> - <%if loop.count|mod divisor=3>
<%/if> + <%if loop.count|mod divisor==3>
<%/if>
@@ -624,8 +624,10 @@ <%last><%= true|store key==endRow><%/last> <%if endRow>
- <%include include/pagination.html pagination=albumPagination pageParameter=="page"> <%/if> + <%last> + <%include include/pagination.html pagination=albumPagination pageParameter=="page"> + <%/last> <%/foreach> <%/if> -- 2.7.4