X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=7752ffb969449d1525681abdfe7cf18aca142490;hp=c999be23ba34b6d636d1145a5a76f2ba3b26a0fd;hb=2a42179827de132c990409999d7d7dd013d69d03;hpb=244ee27268a2d8d4c5775d20b15117f8fcb7be6f diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index c999be2..7752ffb 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -373,7 +373,7 @@ <%/if> - <%foreach album.images image|paginate pageSize=core.preferences.imagesPerPage page=request.page> + <%foreach album.images image|paginate pageSize=core.preferences.imagesPerPage page=page> <%first>

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

<%include include/pagination.html pageParameter=="page"> @@ -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>