X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=d38441b30fee57e3b2d2052877aa23bf57d26ea3;hb=HEAD;hp=8d1f8ceb8cf9e8460ce03de061a10f7a646cfc3f;hpb=a2715f410c410e95397ebbfabbe51a5abfd50387;p=Sone.git diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 8d1f8ce..edcabce 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -1,47 +1,137 @@ -
-
- -
<% post.text|html>
-
-
- - <%if post.sone.current> -
- - - - -
+
+ + + + + <%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>
-
- <%foreach post.replies reply> -
-
- -
<% reply.text|html>
-
-
-
<% reply.time|date format="MMM d, yyyy, HH:mm:ss">
- <%if reply.sone.current> -
- - - - -
- <%/if> -
+
+ class="hidden"<%/if>> + + <%if post.recipientId.present> + → + <%if !post.recipient.present> + + <%else> + + <%/if> + <%/if> + <% 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> +
+
+
+
+ + + + +
+
+ + + + +
- <%/foreach> -
-
- - - - - -
+ · + + · + + · + + <%if ! originalText|match value=renderedText> + · + + <%/if> +
+ · + ↑ +
+ <%ifnull ! currentSone> + · + +
+ + + + + +
+ <%/if> + · + <%= View.Post.WebOfTrustLink|l10n|html> + <%if post.sone.local> + · +
+ + + + +
+ <%/if> +
+ class="hidden"<%/if>> + <%= View.Post.NotDownloaded|l10n|html> +
+
+ <%foreach post.replies reply> + <%include include/viewReply.html> + <%/foreach> + <%ifnull ! currentSone> +
+
+ + + +
+ +
+
+ + +
+
+ <%/if>