X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=81683e40d1be361ef1bba72a5b411f40f1153999;hp=dc2912e6b9a796f012ee23c310d8dc7a0db20f27;hb=ffd92ca2374c0b2218e583d02e0bdd24b8c110ae;hpb=5c83f009af046e4f6f15847646339221129faf3e diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index dc2912e..81683e4 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -1,26 +1,79 @@ -
+
-
- Avatar Image + + <%include include/soneMenu.html class=="sone-post-menu" sone=post.sone> +
+ <%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"> + <%else> + Avatar Image + <%/if> + <%else> + Avatar Image + <%/if>
-
+ class="hidden"<%/if>> - <%ifnull !post.recipient> + <%if post.recipientId.present> → - <%ifnull post.recipient.identity> - + <%if !post.recipient.present> + <%else> - + <%/if> <%/if> -
<% post.text|parse sone=post.sone>
+ <% post.text|html|store key==originalText text==true> + <% post.text|parse sone=post.sone|store key==parsedText> + <% parsedText|render|store key==renderedText text==true> + <% parsedText|shorten length=preferences.charactersPerPost cut-off-length=preferences.postCutOffLength|render|store key==shortText text==true> +
<% originalText>
+
<% renderedText>
+
<% shortText>
+ <%if !shortText|match value=renderedText><%if !raw><%= View.Post.ShowMore|l10n|html><%/if><%/if> + <%if !shortText|match value=renderedText><%if !raw><%/if><%/if> + <% parsedText|linked-elements sone=post.sone|store key==linkedElements> + <% foreach linkedElements linkedElement> + <%if !linkedElement.failed> + <% first> +
+ <%/first> + <% linkedElement|render-linked-element> + <% last> +
+ <%/last> + <%/if> + <%/foreach>
-
- -
+
+
+
+ + + + +
+
+ + + + +
+
+ · + + · + + · + + <%if ! originalText|match value=renderedText> + · + + <%/if> +
· ↑
@@ -41,25 +94,27 @@ <%if !post.sone.current> - · -
- - - - -
-
- - - - -
-
- - - - -
+ <%ifnull !post.sone.trust> + · +
+ + + + +
+
+ + + + +
+
+ + + + +
+ <%/if> <%/if> <%/if> <%if post.sone.local> @@ -72,6 +127,9 @@ <%/if>
+ class="hidden"<%/if>> + <%= View.Post.NotDownloaded|l10n|html> +
<%foreach post.replies reply> <%include include/viewReply.html> @@ -90,7 +148,7 @@
- +