X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewReply.html;h=3a5e59aa64af2193296d8360f391e94c540262c4;hp=c3b50a48256a59a0f6b21adffd5a9a7d7c33b863;hb=ffd92ca2374c0b2218e583d02e0bdd24b8c110ae;hpb=430d58fa4dcf684c65408666c8c2c2824eb2c7e2 diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html index c3b50a4..3a5e59a 100644 --- a/src/main/resources/templates/include/viewReply.html +++ b/src/main/resources/templates/include/viewReply.html @@ -8,26 +8,39 @@ <%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 + Avatar Image <%/if>
<% reply.text|html|store key==originalText text==true> - <% reply.text|parse sone=reply.sone|store key==parsedText text==true> - <% reply.text|parse sone=reply.sone length=core.preferences.charactersPerPost cut-off-length=core.preferences.postCutOffLength|store key==shortText 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>
-
<% parsedText>
-
<% shortText>
- <%if !shortText|match value=parsedText><%if !raw><%= View.Post.ShowMore|l10n|html><%/if><%/if> - <%if !shortText|match value=parsedText><%if !raw><%/if><%/if> +
<% 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">
· - <%if ! originalText|match value=parsedText> + <%if ! originalText|match value=renderedText> · <%/if> @@ -53,25 +66,25 @@ <%if !reply.sone.current> <%ifnull !reply.sone.trust> - · -
- - - - -
-
- - - - -
-
- - - - -
+ · +
+ + + + +
+
+ + + + +
+
+ + + + +
<%/if> <%/if> <%/if>