X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=da8d032301cbb3a9af1aee079e1ac68e7113605b;hb=3145460693b63be7460b461d862a09e5d2151943;hp=06e9cccf4add7d29f307a626380bbcd19a3404d6;hpb=0f7a91f4fa689a4084d7db5987a534b4b4fc3866;p=Sone.git
diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html
index 06e9ccc..da8d032 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>
<% image.id|html>
@@ -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>
+
+ <%/if>
+ <%last><%include include/pagination.html pageParameter=="page"><%/last>
<%/foreach>
<%if album.sone.local>
-
-
+
+
<%include include/uploadImage.html>
@@ -576,7 +582,7 @@
- <%include include/browseAlbums.html albums=sone.albums>
+ <%include include/browseAlbums.html albums=sone.rootAlbum.albums>
<%if 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>
<% album.id|html>
@@ -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>