X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=5a26c1a2741fdd8360a0b46997185770c45311bc;hb=f71a4ea27ef8a7ef12466a81d62b5ca60fc69854;hp=ece0dfca8e49d7b69b31371e865da55ad1f9de81;hpb=c5ad3a58f7b18c96a025e775562daabb28cde7ca;p=Sone.git
diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html
index ece0dfc..5a26c1a 100644
--- a/src/main/resources/templates/imageBrowser.html
+++ b/src/main/resources/templates/imageBrowser.html
@@ -1,6 +1,6 @@
<%include include/head.html>
-
<%= Page.ImageBrowser.Page.Title|l10n|html>
+ image-browser
<%if albumRequested>
@@ -8,13 +8,67 @@
<%= Page.ImageBrowser.Album.Error.NotFound.Text|l10n|html>
- <%elseifnull album.name>
+ <%elseifnull album.title>
<%= Page.ImageBrowser.Album.Error.NotFound.Text|l10n|html>
<%else>
- <% album.name|html>
+ <%if album.sone.local>
+
+ <%/if>
+
+ <%= Page.ImageBrowser.Album.Title|l10n|replace needle='{album}' replacementKey=album.title|html>
<%foreach album.backlinks backlink backlinks>
@@ -27,18 +81,252 @@
<%/foreach>
+ <% album.description|html>
+
+ <%if album.sone.local>
+ » <%= Page.ImageBrowser.Album.Edit.Title|l10n|html>
+
+
<%= Page.ImageBrowser.Album.Edit.Title|l10n|html>
+
+
+
+ <%/if>
+
+ <%foreach album.albums album>
+ <%first><%= Page.ImageBrowser.Header.Albums|l10n|html>
<%/first>
+ <%if loop.count|mod divisor=3><%/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>
+
+ <%if album.sone.local>
+ » <%= View.CreateAlbum.Title|l10n|html>
+
+ <%include include/createAlbum.html>
+
+ <%/if>
+
+ <%foreach album.images image>
+ <%first><%= Page.ImageBrowser.Header.Images|l10n|html>
<%/first>
+ <%if loop.count|mod divisor=3><%/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>
+
+ <%if album.sone.local>
+ » <%= View.UploadImage.Title|l10n|html>
+
+ <%include include/uploadImage.html>
+
+
+ <%if album.empty>
+
+ <%/if>
+
+ <%/if>
+
<%/if>
<%elseif imageRequested>
- <%else>
+ <%image.title|html>
+
+
+ <%foreach image.album.backlinks backlink backlinks>
+
+ <%if ! backlinks.last>
+
>
+ <%/if>
+ <%/foreach>
+
+
+ <%ifnull image>
+
+ <%else>
+
+ <%if image.sone.local>
+
+ <%/if>
+
+
+
+ <%image.description|parse sone=image.sone>
-
+ <%if image.sone.local>
+
+ » <%= Page.ImageBrowser.Image.Edit.Title|l10n|html>
+
+
<%= Page.ImageBrowser.Image.Edit.Title|l10n|html>
+
+
+
+
+ » <%= Page.ImageBrowser.Image.Delete.Title|l10n|html>
+
+
<%= Page.ImageBrowser.Image.Delete.Title|l10n|html>
+
+
+
+
+ <%/if>
+
+ <%/if>
+
+ <%elseif soneRequested>
+
+ <%if sone.local>
+
+ <%/if>
+
+ <%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>
+ <%if loop.count|mod divisor=3><%/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>
+
+ <%if sone.local>
+ » <%= View.CreateAlbum.Title|l10n|html>
+
+ <%include include/createAlbum.html>
+
+ <%/if>
+
+ <%/if>
<%/if>