X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=53352277c8fb04f944b68a401edd608992b3d402;hb=885f3980c49778280a748c630788212a68ac4ed6;hp=c40047d2baddaff613bc12e7dc0b2f02dd1560e0;hpb=462390a581afd4c9647ad6e619aa9c1c8b2c31a8;p=Sone.git diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index c40047d..12d37db 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -1,40 +1,156 @@ -
-
- -
<% post.text|html>
+
+ + + + + <%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> -
+
+ 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=core.preferences.charactersPerPost cut-off-length=core.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> + <% first> +
+ <%/first> + <% linkedElement|render-linked-element> + <% last> +
+ <%/last> + <%/foreach> +
+
+
+ + + + + + +
+ + + + +
+
+ · + + · + + · + + <%if ! originalText|match value=renderedText> + · + + <%/if> +
+ · + ↑ +
+ <%ifnull ! currentSone> + · + +
+ + + + + +
+ <%if !post.sone.current> + <%ifnull !post.sone.trust> + · +
+ + + + +
+
+ + + + +
+
- - + +
<%/if> + <%/if> + <%/if> + <%if post.sone.local> + · +
+ + + + +
+ <%/if> +
+ class="hidden"<%/if>> + <%= View.Post.NotDownloaded|l10n|html> +
+
+ <%foreach post.replies reply> + <%include include/viewReply.html> + <%/foreach> + <%ifnull ! currentSone> +
+
+ + + +
+ +
+
+ + +
-
- <%/foreach> -
-
- - - - - -
+ <%/if>