1 <div id="<% post.id|html>" class="post<%if loop.last> last<%/if><%if post.new> new<%/if>">
2 <a name="post-<% post.id|html>"></a>
3 <div class="post-time hidden"><% post.time|html></div>
4 <div class="post-author hidden"><% post.sone.id|html></div>
7 <img src="/WebOfTrust/GetIdenticon?identity=<% post.sone.id|html>&width=48&height=48" width="48" height="48" alt="Avatar Image" />
9 <img src="images/sone-avatar.png" width="48" height="48" alt="Avatar Image" />
12 <div class="inner-part">
13 <div<%if !post.loaded> class="hidden"<%/if>>
14 <div class="author profile-link"><a href="viewSone.html?sone=<% post.sone.id|html>"><% post.sone.niceName|html></a></div>
15 <%ifnull !post.recipient>
16 <span class="recipient-to">→</span>
17 <%ifnull post.recipient.identity>
18 <div class="recipient profile-link"><a href="viewSone.html?sone=<% post.recipient.id|html>"><%= View.Post.UnknownAuthor|l10n|html></a></div>
20 <div class="recipient profile-link"><a href="viewSone.html?sone=<% post.recipient.id|html>"><% post.recipient.niceName|html></a></div>
23 <% post.text|html|store key=originalText text=true>
24 <% post.text|parse sone=post.sone|store key=parsedText text=true>
25 <div class="post-text raw-text<%if !raw> hidden<%/if>"><% originalText></div>
26 <div class="post-text text<%if raw> hidden<%/if>"><% parsedText></div>
28 <div class="post-status-line status-line<%if !post.loaded> hidden<%/if>">
29 <div class="bookmarks">
30 <form class="unbookmark<%if !post.bookmarked> hidden<%/if>" action="unbookmark.html" method="post">
31 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
32 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
33 <input type="hidden" name="post" value="<% post.id|html>" />
34 <button type="submit" title="<%= View.Post.Bookmarks.PostIsBookmarked|l10n|html>">★</button>
36 <form class="bookmark<%if post.bookmarked> hidden<%/if>" action="bookmark.html" method="post">
37 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
38 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
39 <input type="hidden" name="post" value="<% post.id|html>" />
40 <button type="submit" title="<%= View.Post.Bookmarks.PostIsNotBookmarked|l10n|html>">☆</button>
43 <span class='separator'>·</span>
44 <div class="time"><a href="viewPost.html?post=<% post.id|html>"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></a></div>
45 <span class='separator'>·</span>
46 <div class="permalink permalink-post"><a href="post://<%post.id|html>">[<%= View.Post.Permalink|l10n|html>]</a></div>
47 <span class='separator'>·</span>
48 <div class="permalink permalink-author"><a href="sone://<%post.sone.id|html>">[<%= View.Post.PermalinkAuthor|l10n|html>]</a></div>
49 <%if ! originalText|match key=parsedText>
50 <span class='separator'>·</span>
51 <div class="show-source"><a href="viewPost.html?post=<% post.id|html>&raw=<%if raw>false<%else>true<%/if>"><%= View.Post.ShowSource|l10n|html></a></div>
53 <div class="likes<%if post.likes.size|match value=0> hidden<%/if>">
54 <span class='separator'>·</span>
55 <span title="<% post.likes.soneNames|html>">↑<span class="like-count"><% post.likes.size></span></span>
57 <%ifnull ! currentSone>
58 <span class='separator'>·</span>
59 <form class="like like-post<%if post.liked> hidden<%/if>" action="like.html" method="post">
60 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
61 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
62 <input type="hidden" name="type" value="post" />
63 <input type="hidden" name="post" value="<% post.id|html>" />
64 <button type="submit" value="1"><%= View.Post.LikeLink|l10n|html></button>
66 <form class="unlike unlike-post<%if ! post.liked> hidden<%/if>" action="unlike.html" method="post">
67 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
68 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
69 <input type="hidden" name="type" value="post" />
70 <input type="hidden" name="post" value="<% post.id|html>" />
71 <button type="submit" value="1"><%= View.Post.UnlikeLink|l10n|html></button>
73 <%if !post.sone.current>
74 <span class='separator'>·</span>
75 <form class="trust post-trust<%if post.sone.trust.assigned> hidden<%/if>" action="trust.html" method="post">
76 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
77 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
78 <input type="hidden" name="sone" value="<% post.sone.id|html>" />
79 <button type="submit" title="<%= View.Trust.Tooltip.Trust|l10n|html>">✓</button>
81 <form class="distrust post-distrust<%if post.sone.trust.assigned> hidden<%/if>" action="distrust.html" method="post">
82 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
83 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
84 <input type="hidden" name="sone" value="<% post.sone.id|html>" />
85 <button type="submit" title="<%= View.Trust.Tooltip.Distrust|l10n|html>">✗</button>
87 <form class="untrust post-untrust<%if !post.sone.trust.assigned> hidden<%/if>" action="untrust.html" method="post">
88 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
89 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
90 <input type="hidden" name="sone" value="<% post.sone.id|html>" />
91 <button type="submit" title="<%= View.Trust.Tooltip.Untrust|l10n|html>">↶</button>
96 <span class='separator'>·</span>
97 <form class="delete delete-post" action="deletePost.html" method="post">
98 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
99 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
100 <input type="hidden" name="post" value="<% post.id|html>" />
101 <button type="submit"><%= View.Post.DeleteLink|l10n|html></button>
105 <div<%if post.loaded> class="hidden"<%/if>>
106 <%= View.Post.NotDownloaded|l10n|html>
108 <div class="replies">
109 <%foreach post.replies reply>
110 <%include include/viewReply.html>
112 <%ifnull ! currentSone>
113 <div class="create-reply">
114 <form method="post" action="createReply.html">
115 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
116 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
117 <input type="hidden" name="post" value="<% post.id|html>" />
119 <select name="sender" title="<%= View.UpdateStatus.Text.ChooseSenderIdentity|l10n|html>">
120 <%foreach localSones localSone|sort>
121 <option value="<% localSone.id|html>"<%if localSone.current> selected="selected"<%/if>><% localSone.niceName|html></option>
125 <div class="select-sender"><button type="button" title="<%= View.UpdateStatus.Text.ChooseSenderIdentity|l10n|html>">+</button></div>
126 <input type="text" class="reply-input" name="text" value="" />
127 <button type="submit"><%= View.Post.SendReply|l10n|html></button>