X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=04e467c125159337d1eae6ad51b7c55845ff4327;hb=ccb339cbefdb073f17280707641ed19f7a8ff033;hp=8af0d085b9540a871f356785ac14a6740ec63843;hpb=7379bb70d4db3b419deed77f0df95f74c4b0e038;p=Sone.git
diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html
index 8af0d08..04e467c 100644
--- a/src/main/resources/templates/include/viewPost.html
+++ b/src/main/resources/templates/include/viewPost.html
@@ -1,17 +1,17 @@
-
+
<% post.time|html>
+
<% post.sone.id|html>
+
<% post.sone.local>
-
- <%if !post.sone.current>
-
- <%ifnull !post.sone.trust.explicit>
<% post.sone.trust.explicit><%/if>
- <%ifnull !post.sone.trust.implicit>
<% post.sone.trust.implicit><%/if>
- <%ifnull !post.sone.trust.distance>
<% post.sone.trust.distance><%/if>
+ <%if post.loaded>
+
+ <%else>
+
<%/if>
-
+
class="hidden"<%/if>>
<%ifnull !post.recipient>
â
@@ -21,12 +21,45 @@
<%/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>
â¦<%/if><%/if>
-
+
+
+
+
+
+
·
-
â¬<% post.likes.size>
+
·
+
+
·
+
+ <%if ! originalText|match key=parsedText>
+
·
+
+ <%/if>
+
+ ·
+ â<% post.likes.size>
+
<%ifnull ! currentSone>
+
·
+ <%if !post.sone.current>
+
·
+
+
+
+ <%/if>
<%/if>
- <%if post.sone.current>
+ <%if post.sone.local>
+
·
<%/if>
+
class="hidden"<%/if>>
+ <%= View.Post.NotDownloaded|l10n|html>
+
<%foreach post.replies reply>
<%include include/viewReply.html>
@@ -61,6 +119,14 @@
+
+
+
+