X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=7e62490ecc0e492d1e66616bc635a0301d900f5e;hp=777d59e47456ef299cb693ce9a82602e3471e07c;hb=e8bcd8344a08accda3a58e4eb52cc490f050d3c4;hpb=07212fff97dfa1efd9c2860910e8f4059e246e6b
diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html
index 777d59e..7e62490 100644
--- a/src/main/resources/templates/imageBrowser.html
+++ b/src/main/resources/templates/imageBrowser.html
@@ -3,25 +3,249 @@
+
+
>
<%foreach album.backlinks backlink backlinks>
-
<% album.description|html>
+
<% album.description|parse sone=album.sone>
<%if album.sone.local>
@@ -123,6 +339,17 @@
+ <%if ! album.images.empty>
+
+
+
+
+ <%/if>
@@ -136,26 +363,7 @@
<%/if>
- <%foreach album.albums album>
- <%first>
<%= Page.ImageBrowser.Header.Albums|l10n|html>
<%/first>
- <%if loop.count|mod divisor=3>
<%/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>
+ <%include include/browseAlbums.html albums=album.albums>
<%if album.sone.local>
@@ -167,11 +375,15 @@
<%foreach album.images image>
<%first>
<%= Page.ImageBrowser.Header.Images|l10n|html>
<%/first>
- <%if loop.count|mod divisor=3>
<%/if>
+ <%if loop.count|mod divisor==3>
<%/if>
<% image.id|html>
+
+
<% image.title|html>
+
<% image.description|parse sone=image.sone>
<%if album.sone.local>
<%/if>
<%/foreach>
<%if album.sone.local>
-
-
+
+
<%include include/uploadImage.html>
@@ -230,6 +445,8 @@
<%image.title|html>
+
+
>
<%foreach image.album.backlinks backlink backlinks>
<% backlink.name|html>
@@ -238,6 +455,8 @@
>
<%/if>
<%/foreach>
+ <%ifnull !image.previous>
<%/if>
+ <%ifnull !image.next>
<%/if>
<%ifnull image>
@@ -267,9 +486,9 @@
@@ -333,7 +552,12 @@
});
$("#create-album label").hide();
+ /* hide non-js move buttons. */
+ $(".move-buttons").hide();
+
hideAndShowBlock(".create-album", ".show-create-album", ".hide-create-album");
+
+ prepareAlbums();
});
<%/if>
@@ -344,27 +568,15 @@
<%else>
-
<%= Page.ImageBrowser.Sone.Title|l10n|replace needle='{sone}' replacementKey=sone.niceName|html>
+
<%= Page.ImageBrowser.Sone.Title|l10n|replace needle=='{sone}' replacement=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>
+
+
+ <%include include/browseAlbums.html albums=sone.albums>
<%if sone.local>
@@ -376,6 +588,40 @@
<%/if>
+ <%elseif galleryRequested>
+
+ <%foreach albums album>
+ <%first>
+
<%= Page.ImageBrowser.Header.Albums|l10n|html>
+ <%include include/pagination.html pagination=albumPagination pageParameter=="page">
+ <%/first>
+ <%if loop.count|mod divisor=3>
<%/if>
+
+
<% album.id|html>
+
+
+
+
<% album.title|html> (<%= View.Sone.Stats.Images|l10n 0=album.images.size>)
+
<% album.description|parse sone=album.sone>
+
+
+ <%= 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>
+
+ <%include include/pagination.html pagination=albumPagination pageParameter=="page">
+ <%/if>
+ <%/foreach>
+
<%/if>
<%include include/tail.html>