X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=3a720b6095ba39c3c4965c448fd3ff21868aec8c;hb=a404c9c2b1908f4b9181d8e60f11b846812757fb;hp=9c0ef90f4d405ef70f4ca5e05a2eef368b4eb290;hpb=e3137c0f9db6fd047945bb327bcd49005a7d6401;p=Sone.git diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index 9c0ef90..3a720b6 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -3,25 +3,263 @@ <%if albumRequested> @@ -38,6 +276,7 @@ <%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>

<%/if> - <%foreach album.images image> - <%first>

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

<%/first> - <%if loop.count|mod divisor=3>
<%/if> -
- <% image|image-link max-width=200 max-height=150> - <%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> + <%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.even>
<%/if> +
+ + <%include include/viewImage.html> + <%if album.sone.local> +
+ + + + +
+ + +
+ + +
+ <%/if> +
+ <%= false|store key==endRow> + <%if loop.odd><%= 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>
@@ -204,6 +460,8 @@

<%image.title|html>