X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=4600d458d4541122d44c504311105c9378e28b84;hp=676fa6add4f14553b5a6b62a695803a43a50b8c6;hb=9bb096a81834b63f5574c7f7231ad35271afc058;hpb=160baa2f9d1160b3e5bb7720dd8c3668589776c3 diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 676fa6a..4600d45 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -16,8 +16,10 @@ <%/if> <%/if> -
<% post.text|html>
-
<% post.text|parse sone=post.sone>
+ <% post.text|html|store key=originalText text=true> + <% post.text|parse sone=post.sone|store key=parsedText text=true> +
<% originalText>
+
<% parsedText>
@@ -36,8 +38,10 @@
·
<% post.time|date format="MMM d, yyyy, HH:mm:ss">
- · -
<%= View.Post.ShowSource|l10n|html>
+ <%if ! originalText|match key=parsedText> + · +
<%= View.Post.ShowSource|l10n|html>
+ <%/if>
· ↑