X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=89a8ba5da6b2e78dc98c4dec99571b846dd1c53e;hb=0df5e91852f737d760c5a9f54c5667309fbadcc2;hp=6d968402534a3838d4195d07564bdd5ae87d10e3;hpb=d03286f9214450a179bc1e2ac942e61a30019d34;p=Sone.git diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 6d96840..89a8ba5 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -1,12 +1,18 @@ - -
+
+ -
- Avatar Image + + <%include include/soneMenu.html class=="sone-post-menu" sone=post.sone> +
+ <%if post.loaded> + Avatar Image + <%else> + Avatar Image + <%/if>
-
+ class="hidden"<%/if>> <%ifnull !post.recipient> → @@ -16,10 +22,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=core.preferences.charactersPerPost|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>
· ↑ @@ -48,7 +84,7 @@ -
+ @@ -62,7 +98,7 @@
<%/if> <%/if> - <%if post.sone.current> + <%if post.sone.local> ·
@@ -72,6 +108,9 @@
<%/if>
+ class="hidden"<%/if>> + <%= View.Post.NotDownloaded|l10n|html> +
<%foreach post.replies reply> <%include include/viewReply.html> @@ -82,6 +121,14 @@ +
+ +
+