X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=4600d458d4541122d44c504311105c9378e28b84;hb=9bb096a81834b63f5574c7f7231ad35271afc058;hp=676fa6add4f14553b5a6b62a695803a43a50b8c6;hpb=cf563ebda93371a3088a1789eb628ed568658b14;p=Sone.git 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>
· ↑