X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=7dd4c29361051110f3f88aab7f9f9cc6e2164ffe;hp=3c58011b15384c85258243e2907402971a820e14;hb=0e8f7804ce344bdd69f5ecc7febe25a60a53561d;hpb=b7a4b01e5dc006b99379821ae9d12ba876f3ec26 diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index 3c58011..7dd4c29 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -3,25 +3,263 @@ <%if albumRequested> @@ -39,44 +277,6 @@ <%if album.sone.local> <%/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>

@@ -179,29 +377,7 @@ <%/if> - <%foreach album.albums album> - <%first>

<%= Page.ImageBrowser.Header.Albums|l10n|html>

<%/first> - <%if loop.count|mod divisor=3>
<%/if> -
- -
-
<% album.title|html>
-
<% album.description|html>
-
-
- <%= 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> - <%/foreach> + <%include include/browseAlbums.html albums=album.albums> <%if album.sone.local> @@ -211,17 +387,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=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.title|html>
-
<% image.description|html>
+
<% image.description|parse sone=image.sone>
<%if album.sone.local>
@@ -229,6 +408,11 @@ +
+ + +
+
<%/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>
@@ -278,6 +465,8 @@

<%image.title|html>