X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewReply.html;h=7462b2b8dede8eda1e81207b9ed8fd44bc60394e;hp=8b4c9ef0e333f5c70bd57d64c19dd69668963109;hb=HEAD;hpb=7379bb70d4db3b419deed77f0df95f74c4b0e038 diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html index 8b4c9ef..7462b2b 100644 --- a/src/main/resources/templates/include/viewReply.html +++ b/src/main/resources/templates/include/viewReply.html @@ -1,24 +1,55 @@ - -
+
+ -
- Avatar Image - <%if !reply.sone.current> -
- <%ifnull !post.sone.trust.explicit><% post.sone.trust.explicit><%/if> - <%ifnull !post.sone.trust.implicit><% post.sone.trust.implicit><%/if> - <%ifnull !post.sone.trust.distance><% post.sone.trust.distance><%/if> + + + <%include include/soneMenu.html class=="sone-reply-menu" sone=reply.sone> +
+ <%ifnull !reply.sone.profile.avatar> + <% reply.sone.profile.avatar|image-link max-width==36 max-height==36 mode==enlarge title=="Avatar Image"> + <%else> + Avatar Image <%/if>
-
<% reply.text>
+ <% reply.text|html|store key==originalText text==true> + <% reply.text|parse sone=reply.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=reply.sone|store key==linkedElements> + <% foreach linkedElements linkedElement> + <%if !linkedElement.failed> + <% first> +
+ <%/first> + <% linkedElement|render-linked-element> + <% last> +
+ <%/last> + <%/if> + <%/foreach>
-
<% reply.time|date format="MMM d, yyyy, HH:mm:ss">
-
⬆
+
<% reply.time|date format=="MMM d, yyyy, HH:mm:ss">
+ · + + <%if ! originalText|match value=renderedText> + · + + <%/if> +
+ · + ↑ +
<%ifnull ! currentSone> + · <%/if> - <%if reply.sone.current> + · + <%= View.Post.WebOfTrustLink|l10n|html> + <%if reply.sone.local> + ·