From 8ac7345a26e0bae678744987a6ac47b18ad69732 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 25 Jul 2015 16:57:31 +0200 Subject: [PATCH] Only show the album image --- src/main/resources/i18n/sone.en.properties | 2 +- src/main/resources/static/css/sone.css | 7 +++++- src/main/resources/templates/include/viewPost.html | 27 +++++++++------------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index f8f3211..12927a5 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -370,7 +370,7 @@ View.Post.ShowSource=Toggle Parser View.Post.NotDownloaded=This post has not yet been downloaded, or it has been deleted. View.Post.ShowMore=show more View.Post.ShowLess=show less -View.Post.LinkedAlbum.SizeAndAuthor={1,number} by {0} +View.Post.LinkedAlbum.SizeAndAuthor={1,number} {1,choice,0#images|1#image|1<%if !raw><%/if><%/if> <%foreach parts part> - <%if part.class.simpleName|match value==AlbumPart> + <%if part.class.simpleName|match value==AlbumPart>
-
-
<% part.album.title|html>
-
<%= View.Post.LinkedAlbum.SizeAndAuthor|l10n 0=part.album.sone.niceName 1=part.album.images.size|html>
-
- <%foreach part.album.images image> -
- -
-
<% image.title|html>
-
<% image.description|parse sone=post.sone|render>
+
+ - <%/foreach> +
+
<% part.album.title|html>
+
<% =View.Post.LinkedAlbum.SizeAndAuthor|l10n 0=part.album.sone.niceName 1=part.album.images.size|html|replace needle=="[link]" replacement==''|replace needle=='[/link]' replacement==''|replace needle=='' replacement=part.album.sone.id>
+
<% part.album.description|parse sone=part.album.sone|render>
+
+
<%/if> <%/foreach> -- 2.7.4