X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=a8f1e985e3bd53b78de91a6dfcbc29ab3dde6da7;hb=bd451c9e9aa4618a255f0216222b7c22745c9f7f;hp=7e93f761fb843e7f00493bf15bf79db85e1c8266;hpb=6d18a39d0ea0dabab954d3a24bf34589c310aa10;p=Sone.git diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index 7e93f76..a8f1e98 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -54,7 +54,7 @@ <%/if> -

<%= Page.ImageBrowser.Album.Title|l10n|replace needle='{album}' replacementKey=album.title|html>

+

<%= Page.ImageBrowser.Album.Title|l10n|replace needle='{album}' replacementKey=album.title|html>

+

<% album.description|html>

+ <%foreach album.albums album> + <%first>

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

<%/first> + <%if loop.count|mod divisor=3>
<%/if>
- - <%ifnull album.image> + + <%ifnull album.albumImage> <% album.title|html> <%else> - <% album.title|html> + <% album.albumImage|image-link max-width=200 max-height=150 title==album.title> <%/if> +
+ <% album.title|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> <%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>
+ <%= 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.description|html> -
- <%if album.sone.local> <%include include/uploadImage.html> <%include include/createAlbum.html> @@ -123,7 +135,7 @@ <%elseif imageRequested> -

<%image.title|html>

+

<%image.title|html>