X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FbrowseAlbums.html;h=4961e74300662b724d40820fe8181443fc1bc87f;hp=74bf71444830c1d78e80aeca569c3fe9d8ac6801;hb=a404c9c2b1908f4b9181d8e60f11b846812757fb;hpb=748a763416ff1bf018a4e425f78d01b39f460dd6
diff --git a/src/main/resources/templates/include/browseAlbums.html b/src/main/resources/templates/include/browseAlbums.html
index 74bf714..4961e74 100644
--- a/src/main/resources/templates/include/browseAlbums.html
+++ b/src/main/resources/templates/include/browseAlbums.html
@@ -1,9 +1,47 @@
-<%foreach albums album>
- <%first>
<%/if>
- <%include include/viewAlbum.html>
+<%foreach albums album|paginate pageSize=core.preferences.imagesPerPage page=albumPage>
+ <%first>
+
<%= Page.ImageBrowser.Header.Albums|l10n|html>
+ <%include include/pagination.html pageParameter=="albumPage">
+
+ <%/first>
+ <%if loop.even>
<%/if>
+
+
<% album.id|html>
+ <%include include/viewAlbum.html>
+
<%= false|store key==endRow>
- <%if loop.count|mod divisor==3 offset==1><%= true|store key==endRow><%/if>
+ <%if loop.odd><%= true|store key==endRow><%/if>
<%last><%= true|store key==endRow><%/last>
<%if endRow>
<%/if>
+ <%last>
+
+ <%include include/pagination.html pageParameter=="albumPage">
+ <%/last>
+
+ <%if album.sone.local>
+
+ <%/if>
<%/foreach>