From: David ‘Bombe’ Roden Date: Sat, 25 Jul 2015 14:57:31 +0000 (+0200) Subject: Only show the album image X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8ac7345a26e0bae678744987a6ac47b18ad69732;p=Sone.git Only show the album image --- 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>