From: David ‘Bombe’ Roden Date: Thu, 31 May 2012 10:12:19 +0000 (+0200) Subject: Paginate images within an album. X-Git-Tag: 0.8.2^2~5 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=244ee27268a2d8d4c5775d20b15117f8fcb7be6f;p=Sone.git Paginate images within an album. --- 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>