X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=ea6fdec2689401321e4be07335f038a2044d4a27;hb=b05cc6e6e123a9cf6988e318435ba3b0a62fbb59;hp=30c61e4aac43ddfa08e78c8a5829cfb7489bea28;hpb=7034cd9a2616e1c377d4db35371a8056bd29e120;p=Sone.git diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index 30c61e4..ea6fdec 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -1,5 +1,126 @@ <%include include/head.html> -

<%= Page.ImageBrowser.Page.Title|l10n|html>

+ + + + + <%if albumRequested> + + <%ifnull album> + +

<%= Page.ImageBrowser.Album.Error.NotFound.Text|l10n|html>

+ + <%elseifnull album.title> + +

<%= Page.ImageBrowser.Album.Error.NotFound.Text|l10n|html>

+ + <%else> + +

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

+ + + + <%foreach album.albums album> +
+ + <%ifnull album.image> + <% album.title|html> + <%else> + <% album.title|html> + <%/if> + +
+ <%/foreach> + + <%foreach album.images image> +
+ + <% image|image-link max-width=200 max-height=150> + +
+ <%/foreach> + +
+ <% album.description|html> +
+ + <%if album.sone.current> + <%include include/uploadImage.html> + <%include include/createAlbum.html> + <%/if> + + <%/if> + + <%elseif imageRequested> + + <%ifnull image> + + <%else> + +
+ + <% image|image-link max-width=200 max-height=150> + +
+ + <%/if> + + <%elseif soneRequested> + + <%ifnull sone> + +

<%= Page.ImageBrowser.Sone.Error.NotFound.Text|l10n|html>

+ + <%else> + +

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

+ + <%foreach sone.albums album> +
+
+ + <%ifnull album.image> + <% album.title|html> + <%else> + <% album.title|html> + <%/if> + +
+
+ <%/foreach> + + <%if sone.current> + <%include include/createAlbum.html> + <%/if> + + <%/if> + + <%/if> <%include include/tail.html>