From 41bb5314210291aac78b79e77c51fbaff6485eb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 24 Sep 2011 00:25:48 +0200 Subject: [PATCH] =?utf8?q?But=20album=20browser=20in=20own=20include=20fil?= =?utf8?q?e,=20don=E2=80=99t=20use=20.image=20on=20albums.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/css/sone.css | 10 ++--- .../resources/templates/include/browseAlbums.html | 45 ++++++++++++++++++++++ 2 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 src/main/resources/templates/include/browseAlbums.html diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index 8c30aa8..f782b76 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -652,11 +652,11 @@ textarea { #sone .album { } -#sone .image-row { +#sone .image-row, #sone .album-row { display: table-row; } -#sone .image-container { +#sone .image-container, #sone .album-container { width: 250px; height: 250px; overflow: hidden; @@ -664,7 +664,7 @@ textarea { border: solid 1px #000; } -#sone .image { +#sone .image, #sone .album { display: table-cell; vertical-align: top; text-align: center; @@ -676,11 +676,11 @@ textarea { background-color: #fff; } -#sone .image .edit-image input { +#sone .image .edit-image input, #sone .album .edit-album input { width: 95%; } -#sone .image .edit-image textarea { +#sone .image .edit-image textarea, #sone .album .edit-album textarea { width: 95%; } diff --git a/src/main/resources/templates/include/browseAlbums.html b/src/main/resources/templates/include/browseAlbums.html new file mode 100644 index 0000000..752dd6d --- /dev/null +++ b/src/main/resources/templates/include/browseAlbums.html @@ -0,0 +1,45 @@ +<%foreach album.albums album> + <%first>

<%= Page.ImageBrowser.Header.Albums|l10n|html>

<%/first> + <%if loop.count|mod divisor=3>
<%/if> +
+ + +
+
<% album.title|html>
+
<% album.description|html>
+
+ <%if album.sone.local> +
+ + + + + +
+ <%/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> -- 2.7.4