X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=7752ffb969449d1525681abdfe7cf18aca142490;hp=7e62490ecc0e492d1e66616bc635a0301d900f5e;hb=2a42179827de132c990409999d7d7dd013d69d03;hpb=e8bcd8344a08accda3a58e4eb52cc490f050d3c4 diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index 7e62490..7752ffb 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=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> @@ -590,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>
@@ -618,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>