+ <%include include/pagination.html pageParameter=="page">
+ <%/if>
+ <%/foreach>
+
+ <%if album.sone.local>
+
+
+
>
<%foreach image.album.backlinks backlink backlinks>
<% backlink.name|html>
@@ -146,6 +461,8 @@
>
<%/if>
<%/foreach>
+ <%ifnull !image.previous>
<%/if>
+ <%ifnull !image.next>
<%/if>
<%ifnull image>
@@ -166,15 +483,18 @@
});
});
$("#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 +502,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 +557,13 @@
});
});
$("#create-album label").hide();
+
+ /* hide non-js move buttons. */
+ $(".move-buttons").hide();
+
+ hideAndShowBlock(".create-album", ".show-create-album", ".hide-create-album");
+
+ prepareAlbums();
});
<%/if>
@@ -238,32 +574,61 @@
<%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>
-
+
+
+ <%include include/browseAlbums.html albums=sone.albums>
+
+ <%if sone.local>
+
+
+
+ <%include include/createAlbum.html>
+
+ <%/if>
+
+ <%/if>
+
+ <%elseif galleryRequested>
+
+ <%foreach albums album|paginate pageSize=core.preferences.imagesPerPage pageParameter=request.page pagination=albumPagination>
+ <%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>
+
- <%= 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>
- <%include include/createAlbum.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>
-
- <%/if>
+ <%last>
+ <%include include/pagination.html pagination=albumPagination pageParameter=="page">
+ <%/last>
+ <%/foreach>
<%/if>