X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=40fa89117f80937d73582142682cdf126137dab7;hb=e7670e864e9e687f9e536f367b8c7da781f0c754;hp=8af0d085b9540a871f356785ac14a6740ec63843;hpb=975b4b84bdcc602c17510da80cbe6c61992edb57;p=Sone.git
diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html
index 8af0d08..40fa891 100644
--- a/src/main/resources/templates/include/viewPost.html
+++ b/src/main/resources/templates/include/viewPost.html
@@ -1,17 +1,16 @@
-
+
<% post.time|html>
+
<% post.sone.id|html>
-
![Avatar Image](/WoT/GetIdenticon?identity=<% post.sone.id|html>&width=48&height=48)
- <%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>
+
![Avatar Image](/WebOfTrust/GetIdenticon?identity=<% post.sone.id|html>&width=48&height=48)
+ <%else>
+
![Avatar Image](images/sone-avatar.png)
<%/if>
-
+
class="hidden"<%/if>>
<%ifnull !post.recipient>
â
@@ -21,12 +20,42 @@
<%/if>
<%/if>
-
<% post.text>
+ <% post.text|html|store key=originalText text=true>
+ <% post.text|parse sone=post.sone|store key=parsedText text=true>
+
<% originalText>
+
<% parsedText>
-
+
+
+
+
+
+
·
+
+
·
+
+
·
-
â¬<% 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 +115,14 @@
+
+
+
+