<%= Page.ImageBrowser.Image.Delete.Title|l10n|html>
@@ -276,17 +552,12 @@
});
$("#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;
- });
- };
+ /* hide non-js move buttons. */
+ $(".move-buttons").hide();
+
+ hideAndShowBlock(".create-album", ".show-create-album", ".hide-create-album");
- hideBlock(".create-album", ".show-create-album");
+ prepareAlbums();
});
<%/if>
@@ -299,27 +570,17 @@
<%= 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>
@@ -327,6 +588,34 @@
<%/if>
+ <%elseif galleryRequested>
+
+ <%foreach albums album>
+ <%first>
<%= Page.ImageBrowser.Header.Albums|l10n|html>
<%/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>
<%/if>
+ <%/foreach>
+
<%/if>
<%include include/tail.html>