X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=a8a33c9e3a57b0df84b5d58d5b0f6ed9cb49923a;hb=b385551aaa0750cb0041858037cd83dcbf9006b6;hp=66eb33d052135ca49eefce56265549cac7273c14;hpb=6fb5846e38f0d68f2870f9a4222685f9219da3ba;p=Sone.git
diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html
index 66eb33d..a8a33c9 100644
--- a/src/main/resources/templates/imageBrowser.html
+++ b/src/main/resources/templates/imageBrowser.html
@@ -2,7 +2,7 @@
image-browser
-
<%/if>
- <%= Page.ImageBrowser.Album.Title|l10n|replace needle='{album}' replacementKey=album.title|html>
+ <%= Page.ImageBrowser.Album.Title|l10n|replace needle=='{album}' replacement=album.title|html>
@@ -327,7 +341,7 @@
<%/foreach>
- <% album.description|parse sone=album.sone>
+ <% album.description|parse sone=album.sone|render>
<%if album.sone.local>
@@ -339,17 +353,6 @@
- <%if ! album.images.empty>
-
-
-
-
- <%/if>
@@ -373,17 +376,20 @@
<%/if>
- <%foreach album.images image>
- <%first><%= Page.ImageBrowser.Header.Images|l10n|html>
<%/first>
- <%if loop.count|mod divisor=3><%/if>
+ <%foreach album.images image|paginate pageSize=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>
<% image.title|html>
-
<% image.description|parse sone=image.sone>
+
<% image.description|parse sone=image.sone|render>
<%if album.sone.local>
<%/if>
- <%= 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>
+ <%= 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>
+ <%last><%include include/pagination.html pageParameter=="page"><%/last>
<%/foreach>
<%if album.sone.local>
-
-
+
+
<%include include/uploadImage.html>
@@ -464,7 +473,7 @@
<%else>
<%if image.sone.local>
-