X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=89a8ba5da6b2e78dc98c4dec99571b846dd1c53e;hb=0df5e91852f737d760c5a9f54c5667309fbadcc2;hp=3023566cbfaf6bea6b92225af21dcf03e576b692;hpb=6991fe9edc0e1652b695f9c0b2844bb6a0842c84;p=Sone.git diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 3023566..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,16 @@ <%/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> + <% 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>
-
+
@@ -37,7 +49,13 @@ · · - + + · + + <%if ! originalText|match key=parsedText> + · + + <%/if>
· ↑ @@ -90,6 +108,9 @@ <%/if>
+ class="hidden"<%/if>> + <%= View.Post.NotDownloaded|l10n|html> +
<%foreach post.replies reply> <%include include/viewReply.html>