X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=62df74177e3bf1d0084a59d4dd5c49e3576f2cfa;hb=dc1846ee73e3005aea42d74977627866f34ffd61;hp=64fddea36b1b003814500b2194899ad34e788a70;hpb=cc8499e32a85051b1f8c387d65378f943ee7b00e;p=Sone.git diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 64fddea..62df741 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -1,12 +1,17 @@ -
+ +
- Avatar Image + <%if post.loaded> + Avatar Image + <%else> + Avatar Image + <%/if>
-
+ class="hidden"<%/if>> <%ifnull !post.recipient> → @@ -16,10 +21,40 @@ <%/if> <%/if> -
<% post.text>
+ <% post.text|html|store key=originalText text=true> + <% post.text|parse sone=post.sone|store key=parsedText text=true> + <% post.text|parse sone=post.sone length=200|store key=shortText text=true> +
<% originalText>
+
<% parsedText>
+
<% shortText>
+ <%if !shortText|match key=parsedText><%if !raw><%= View.Post.ShowMore|l10n|html><%/if><%/if> + <%if !shortText|match key=parsedText><%if !raw><%/if><%/if>
-
+
+
+
+ + + + +
+
+ + + + +
+
+ · + · + + · + + <%if ! originalText|match key=parsedText> + · + + <%/if>
· ↑ @@ -62,7 +97,7 @@ <%/if> <%/if> - <%if post.sone.current> + <%if post.sone.local> ·
@@ -72,6 +107,9 @@
<%/if>
+ class="hidden"<%/if>> + <%= View.Post.NotDownloaded|l10n|html> +
<%foreach post.replies reply> <%include include/viewReply.html> @@ -82,6 +120,14 @@ +
+ +
+