-
+
+
+
+
+
+
+
+
+
+
+
+
<%/if>
@@ -163,16 +409,21 @@
<%/foreach>
<%if album.sone.local>
-
» <%= View.UploadImage.Title|l10n|html>
+
+
<%include include/uploadImage.html>
<%if album.empty>
-
+
+
+
+
+
<%/if>
<%/if>
@@ -213,18 +464,8 @@
});
$("#edit-image label").hide();
- /* hide all those forms. */
- hideBlock = function(blockElement, clickElement) {
- $(blockElement).hide();
- $(clickElement).removeClass("hidden").click(function() {
- $(blockElement).slideDown();
- $(this).slideUp();
- return false;
- });
- };
-
- hideBlock(".edit-image", ".show-edit-image");
- hideBlock(".delete-image", ".show-delete-image");
+ hideAndShowBlock(".edit-image", ".show-edit-image", ".hide-edit-image");
+ hideAndShowBlock(".delete-image", ".show-delete-image", ".hide-delete-image");
});
<%/if>
@@ -241,7 +482,8 @@
<%if image.sone.local>
-
» <%= Page.ImageBrowser.Image.Edit.Title|l10n|html>
+
+
<%= Page.ImageBrowser.Image.Edit.Title|l10n|html>
@@ -264,7 +506,8 @@
-
» <%= Page.ImageBrowser.Image.Delete.Title|l10n|html>
+
+
<%= Page.ImageBrowser.Image.Delete.Title|l10n|html>
@@ -295,17 +538,9 @@
});
$("#create-album label").hide();
- /* hide all those forms. */
- hideBlock = function(blockElement, clickElement) {
- $(blockElement).hide();
- $(clickElement).removeClass("hidden").click(function() {
- $(blockElement).slideDown();
- $(this).slideUp();
- return false;
- });
- };
+ hideAndShowBlock(".create-album", ".show-create-album", ".hide-create-album");
- hideBlock(".create-album", ".show-create-album");
+ prepareAlbums();
});
<%/if>
@@ -318,27 +553,11 @@
<%= 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>
+ <%include include/browseAlbums.html albums=sone.albums>
<%if sone.local>
-
» <%= View.CreateAlbum.Title|l10n|html>
+
+
<%include include/createAlbum.html>