X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewReply.html;h=7462b2b8dede8eda1e81207b9ed8fd44bc60394e;hp=99aa2a60246d63516c871f631dc61e849eb919e2;hb=HEAD;hpb=ee8888053a6990fd02ee12a582c616f302dc4084 diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html index 99aa2a6..7462b2b 100644 --- a/src/main/resources/templates/include/viewReply.html +++ b/src/main/resources/templates/include/viewReply.html @@ -1,28 +1,55 @@ - -
+
+ -
- Avatar Image - <%if !reply.sone.current> -
-
- <%if reply.sone.trust.assigned> - <% reply.sone.trust.explicit> - <%else> - <% reply.sone.trust.implicit> - <%/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> + ·