From: David ‘Bombe’ Roden Date: Fri, 23 Sep 2011 22:25:48 +0000 (+0200) Subject: But album browser in own include file, don’t use .image on albums. X-Git-Tag: 0.7^2~2^2~8 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=41bb5314210291aac78b79e77c51fbaff6485eb6 But album browser in own include file, don’t use .image on albums. --- 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>