From: David ‘Bombe’ Roden Date: Sat, 1 Aug 2015 20:58:26 +0000 (+0200) Subject: Include a smaller album preview in replies X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=9d650c4e96208a94f448a31aa481ec4f0965b4e9 Include a smaller album preview in replies --- diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html index ec8b447..765b03f 100644 --- a/src/main/resources/templates/include/viewReply.html +++ b/src/main/resources/templates/include/viewReply.html @@ -24,6 +24,14 @@ <%if !shortText|match value=parsedText><%if !raw><%= View.Post.ShowMore|l10n|html><%/if><%/if> <%if !shortText|match value=parsedText><%if !raw><%/if><%/if> + <%foreach parts part> + <%if part.class.simpleName|match value==AlbumPart> + <% part.album.images.random|store key==image> +
+ <%include include/viewAlbum.html album=part.album hideMoveButtons==true> +
+ <%/if> + <%/foreach>
<% reply.time|date format=="MMM d, yyyy, HH:mm:ss">
·