X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=b451f2b71b1c0114cb860b5bc61676545ba2a98f;hb=9a254c2af6f176c8a95ef6accfdb288ad159d125;hp=1f0020c29c105d9cc0008bfd93fecdd748880cea;hpb=c8f518f638aa16cf37145561b709d28252de213a;p=Sone.git
diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html
index 1f0020c..b451f2b 100644
--- a/src/main/resources/templates/include/viewPost.html
+++ b/src/main/resources/templates/include/viewPost.html
@@ -1,62 +1,134 @@
-
-
-
-
-
â¬<% post.likes.size>
- <%ifnull ! currentSone>
-
-
- <%/if>
- <%if post.sone.current>
-
+
+
+
<% post.time|html>
+
<% post.sone.id|html>
+
<% post.sone.local>
+
+ <%if post.loaded>
+
![Avatar Image](/WebOfTrust/GetIdenticon?identity=<% post.sone.id|html>&width=48&height=48)
+ <%else>
+
![Avatar Image](images/sone-avatar.png)
<%/if>
-
- <%foreach post.replies reply>
-
-
-
-
<% reply.text|html>
-
-
-
<% reply.time|date format="MMM d, yyyy, HH:mm:ss">
- <%if reply.sone.current>
-
- <%/if>
-
+
+
class="hidden"<%/if>>
+
+ <%ifnull !post.recipient>
+
â
+ <%ifnull post.recipient.identity>
+
+ <%else>
+
+ <%/if>
+ <%/if>
+ <% post.text|html|store key=originalText text=true>
+ <% post.text|parse sone=post.sone|store key=parsedText text=true>
+
<% originalText>
+
<% parsedText>
+
+
+
+
+
- <%/foreach>
-
-
+
·
+
+
·
+
+
·
+
+ <%if ! originalText|match key=parsedText>
+
·
+
+ <%/if>
+
+ ·
+ â<% post.likes.size>
+
+ <%ifnull ! currentSone>
+
·
+
+
+ <%if !post.sone.current>
+
·
+
+
+
+ <%/if>
+ <%/if>
+ <%if post.sone.local>
+
·
+
+ <%/if>
+
+
class="hidden"<%/if>>
+ <%= View.Post.NotDownloaded|l10n|html>
+
+
+ <%foreach post.replies reply>
+ <%include include/viewReply.html>
+ <%/foreach>
+ <%ifnull ! currentSone>
+
+ <%/if>