X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewReply.html;h=3a5e59aa64af2193296d8360f391e94c540262c4;hp=a9b308efe6983aaa59c245fa926c78ffefd0580a;hb=ffd92ca2374c0b2218e583d02e0bdd24b8c110ae;hpb=437147c8b5d4c6630b6ee9323f9778bb9c13e7f4 diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html index a9b308e..3a5e59a 100644 --- a/src/main/resources/templates/include/viewReply.html +++ b/src/main/resources/templates/include/viewReply.html @@ -1,18 +1,55 @@ - -
+
+ -
- Avatar Image + + + <%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.Trust.Label|l10n|html> - <%if reply.sone.trust.assigned> -
<% reply.sone.trust.explicit>
- <%else> -
<% reply.sone.trust.implicit><%if reply.sone.trust.hasDistance> (<% reply.sone.trust.distance>)<%/if>
- <%/if> - <%if !reply.sone.trust.maximum> -
+ <%if !reply.sone.current> + <%ifnull !reply.sone.trust> + · + + + + + +
+
+ + + + +
+
- - + +
<%/if> -
- - - - -
-
+ <%/if> <%/if> - <%if reply.sone.current> + <%if reply.sone.local> + ·