X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=9c0ef90f4d405ef70f4ca5e05a2eef368b4eb290;hb=e3137c0f9db6fd047945bb327bcd49005a7d6401;hp=a8f1e985e3bd53b78de91a6dfcbc29ab3dde6da7;hpb=bd451c9e9aa4618a255f0216222b7c22745c9f7f;p=Sone.git
diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html
index a8f1e98..9c0ef90 100644
--- a/src/main/resources/templates/imageBrowser.html
+++ b/src/main/resources/templates/imageBrowser.html
@@ -2,6 +2,28 @@
<%/if>
<%= false|store key=endRow>
<%if loop.count|mod divisor=3 offset=1><%= true|store key=endRow><%/if>
@@ -102,31 +178,21 @@
<%/foreach>
<%if album.sone.local>
- <%include include/uploadImage.html>
- <%include include/createAlbum.html>
-
-
<%= Page.ImageBrowser.Album.Edit.Title|l10n|html>
-
-
+
+
+
+ <%include include/uploadImage.html>
+
<%if album.empty>
-
+
+
+
+
+
<%/if>
<%/if>
@@ -166,6 +232,9 @@
});
});
$("#edit-image label").hide();
+
+ hideAndShowBlock(".edit-image", ".show-edit-image", ".hide-edit-image");
+ hideAndShowBlock(".delete-image", ".show-delete-image", ".hide-delete-image");
});
<%/if>
@@ -182,31 +251,40 @@
<%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>
@@ -228,6 +306,8 @@
});
});
$("#create-album label").hide();
+
+ hideAndShowBlock(".create-album", ".show-create-album", ".hide-create-album");
});
<%/if>
@@ -260,7 +340,11 @@
<%/foreach>
<%if sone.local>
- <%include include/createAlbum.html>
+
+
+
+ <%include include/createAlbum.html>
+
<%/if>
<%/if>