X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=5ce2d28f14ccf6cd4b9849fc9dbe3442850da5d9;hb=a404c9c2b1908f4b9181d8e60f11b846812757fb;hp=7120d0693b757f802c9b04999ee694117c3240cd;hpb=61fea0173ef87542cae35247e6356ef36f2664d3;p=Sone.git diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 7120d06..5ce2d28 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -7,9 +7,9 @@
<%if post.loaded> <%ifnull !post.sone.profile.avatar> - <%post.sone.profile.avatar|image-link max-width==48 max-height==48 mode==enlarge title=="Avatar Image"> + <%post.sone.profile.avatar|build-id sone=post.sone|image-link max-width==48 max-height==48 mode==enlarge title=="Avatar Image"> <%else> - Avatar Image + Avatar Image <%/if> <%else> Avatar Image @@ -18,23 +18,32 @@
class="hidden"<%/if>> - <%ifnull !post.recipient> + <%if post.recipientId.present> → - <%ifnull post.recipient.identity> - + <%if !post.recipient.present> + <%else> - + <%/if> <%/if> <% post.text|html|store key==originalText text==true> - <% post.text|parse sone=post.sone|store key==parsedText text==true> - <% post.text|parse sone=post.sone length=core.preferences.charactersPerPost cut-off-length=core.preferences.postCutOffLength|store key==shortText text==true> + <% post.text|parse sone=post.sone|store key==parts> + <% parts|render|store key==parsedText text==true> + <% parts|render length=core.preferences.charactersPerPost cut-off-length=core.preferences.postCutOffLength|store key==shortText text==true>
<% originalText>
<% parsedText>
<% shortText>
<%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> +
+ <%/if> + <%/foreach>