X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=bc1cb72ff9269b5306d208bd0ac7e087e5f564f0;hb=308c05fe34c4820bada0e9051bb536ab0a42412e;hp=7c1667c1a6ea07d1ceb24e476de11be17c76a25c;hpb=2fa9b1331a69d2f8fc09050515560fe1f3f41485;p=Sone.git diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index 7c1667c..bc1cb72 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -1,5 +1,24 @@ <%include include/head.html> + + <%if albumRequested> @@ -29,7 +48,25 @@ <%foreach album.albums album>
-
<% album.name|html>
+ + <%ifnull album.image> + <% album.name|html> + <%else> + <% album.name|html> + <%/if> + +
+ <%/foreach> + + <%foreach album.images image> +
+ + <%ifnull image.key> + <% image.title|html> + <%else> + <% image.title|html> + <%/if> +
<%/foreach> @@ -38,6 +75,7 @@ <%if album.sone.current> + <%include include/uploadImage.html> <%include include/createAlbum.html> <%/if> @@ -57,7 +95,15 @@ <%foreach sone.albums album>
-
<% album.name|html>
+
+ + <%ifnull album.image> + <% album.name|html> + <%else> + <% album.name|html> + <%/if> + +
<%/foreach>