X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=a88c48ff9ca6b4fb72b8b4e0a37d13b5a045a9c9;hp=06e9cccf4add7d29f307a626380bbcd19a3404d6;hb=309ce4a13f23fc42f3f4748272ccf2b07754f023;hpb=0f7a91f4fa689a4084d7db5987a534b4b4fc3866 diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index 06e9ccc..a88c48f 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,12 +418,15 @@ <%= 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> - - + +
<%include include/uploadImage.html>
@@ -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>