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

<% album.description|html>

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

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

<%/first> + <%if loop.count|mod divisor=3>
<%/if>
<%ifnull album.albumImage> @@ -79,18 +83,24 @@ <% 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> @@ -231,6 +241,7 @@

<%= Page.ImageBrowser.Sone.Title|l10n|replace needle='{sone}' replacementKey=sone.niceName|html>

<%foreach sone.albums album> + <%if loop.count|mod divisor=3>
<%/if>
<%ifnull album.albumImage> @@ -242,6 +253,10 @@ <% 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> <%if sone.local>