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>
5 <div class="post-author-local hidden"><% post.sone.local></div>
6 <div class="sone-post-menu">
7 <div class="sone-id hidden"><%post.sone.id|html></div>
8 <img class="avatar" src="/WebOfTrust/GetIdenticon?identity=<% post.sone.id|html>&width=64&height=64" width="64" height="64" alt="Avatar Image" />
9 <div class="inner-menu">
11 <a class="author" href="viewSone.html?sone=<% post.sone.id|html>"><% post.sone.niceName|html></a>
12 <span class="author-wot-link">(<a href="/WebOfTrust/ShowIdentity?id=<% post.sone.id|html>"><% =View.Post.WebOfTrustLink|l10n|html></a>)</span>
18 <img src="/WebOfTrust/GetIdenticon?identity=<% post.sone.id|html>&width=48&height=48" width="48" height="48" alt="Avatar Image" />
20 <img src="images/sone-avatar.png" width="48" height="48" alt="Avatar Image" />
23 <div class="inner-part">
24 <div<%if !post.loaded> class="hidden"<%/if>>
25 <div class="author profile-link"><a href="viewSone.html?sone=<% post.sone.id|html>"><% post.sone.niceName|html></a></div>
26 <%ifnull !post.recipient>
27 <span class="recipient-to">→</span>
28 <%ifnull post.recipient.identity>
29 <div class="recipient profile-link"><a href="viewSone.html?sone=<% post.recipient.id|html>"><%= View.Post.UnknownAuthor|l10n|html></a></div>
31 <div class="recipient profile-link"><a href="viewSone.html?sone=<% post.recipient.id|html>"><% post.recipient.niceName|html></a></div>
34 <% post.text|html|store key=originalText text=true>
35 <% post.text|parse sone=post.sone|store key=parsedText text=true>
36 <div class="post-text raw-text<%if !raw> hidden<%/if>"><% originalText></div>
37 <div class="post-text text<%if raw> hidden<%/if>"><% parsedText></div>
39 <div class="post-status-line status-line<%if !post.loaded> hidden<%/if>">
40 <div class="bookmarks">
41 <form class="unbookmark<%if !post.bookmarked> hidden<%/if>" action="unbookmark.html" method="post">
42 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
43 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
44 <input type="hidden" name="post" value="<% post.id|html>" />
45 <button type="submit" title="<%= View.Post.Bookmarks.PostIsBookmarked|l10n|html>">★</button>
47 <form class="bookmark<%if post.bookmarked> hidden<%/if>" action="bookmark.html" method="post">
48 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
49 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
50 <input type="hidden" name="post" value="<% post.id|html>" />
51 <button type="submit" title="<%= View.Post.Bookmarks.PostIsNotBookmarked|l10n|html>">☆</button>
54 <span class='separator'>·</span>
55 <div class="time"><a href="viewPost.html?post=<% post.id|html>"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></a></div>
56 <span class='separator'>·</span>
57 <div class="permalink permalink-post"><a href="post://<%post.id|html>">[<%= View.Post.Permalink|l10n|html>]</a></div>
58 <span class='separator'>·</span>
59 <div class="permalink permalink-author"><a href="sone://<%post.sone.id|html>">[<%= View.Post.PermalinkAuthor|l10n|html>]</a></div>
60 <%if ! originalText|match key=parsedText>
61 <span class='separator'>·</span>
62 <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>
64 <div class="likes<%if post.likes.size|match value=0> hidden<%/if>">
65 <span class='separator'>·</span>
66 <span title="<% post.likes.soneNames|html>">↑<span class="like-count"><% post.likes.size></span></span>
68 <%ifnull ! currentSone>
69 <span class='separator'>·</span>
70 <form class="like like-post<%if post.liked> hidden<%/if>" action="like.html" method="post">
71 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
72 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
73 <input type="hidden" name="type" value="post" />
74 <input type="hidden" name="post" value="<% post.id|html>" />
75 <button type="submit" value="1"><%= View.Post.LikeLink|l10n|html></button>
77 <form class="unlike unlike-post<%if ! post.liked> hidden<%/if>" action="unlike.html" method="post">
78 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
79 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
80 <input type="hidden" name="type" value="post" />
81 <input type="hidden" name="post" value="<% post.id|html>" />
82 <button type="submit" value="1"><%= View.Post.UnlikeLink|l10n|html></button>
84 <%if !post.sone.current>
85 <span class='separator'>·</span>
86 <form class="trust post-trust<%if post.sone.trust.assigned> hidden<%/if>" action="trust.html" method="post">
87 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
88 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
89 <input type="hidden" name="sone" value="<% post.sone.id|html>" />
90 <button type="submit" title="<%= View.Trust.Tooltip.Trust|l10n|html>">✓</button>
92 <form class="distrust post-distrust<%if post.sone.trust.assigned> hidden<%/if>" action="distrust.html" method="post">
93 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
94 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
95 <input type="hidden" name="sone" value="<% post.sone.id|html>" />
96 <button type="submit" title="<%= View.Trust.Tooltip.Distrust|l10n|html>">✗</button>
98 <form class="untrust post-untrust<%if !post.sone.trust.assigned> hidden<%/if>" action="untrust.html" method="post">
99 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
100 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
101 <input type="hidden" name="sone" value="<% post.sone.id|html>" />
102 <button type="submit" title="<%= View.Trust.Tooltip.Untrust|l10n|html>">↶</button>
106 <%if post.sone.local>
107 <span class='separator'>·</span>
108 <form class="delete delete-post" action="deletePost.html" method="post">
109 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
110 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
111 <input type="hidden" name="post" value="<% post.id|html>" />
112 <button type="submit"><%= View.Post.DeleteLink|l10n|html></button>
116 <div<%if post.loaded> class="hidden"<%/if>>
117 <%= View.Post.NotDownloaded|l10n|html>
119 <div class="replies">
120 <%foreach post.replies reply>
121 <%include include/viewReply.html>
123 <%ifnull ! currentSone>
124 <div class="create-reply">
125 <form method="post" action="createReply.html">
126 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
127 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
128 <input type="hidden" name="post" value="<% post.id|html>" />
130 <select name="sender" title="<%= View.UpdateStatus.Text.ChooseSenderIdentity|l10n|html>">
131 <%foreach localSones localSone|sort>
132 <option value="<% localSone.id|html>"<%if localSone.current> selected="selected"<%/if>><% localSone.niceName|html></option>
136 <div class="select-sender"><button type="button" title="<%= View.UpdateStatus.Text.ChooseSenderIdentity|l10n|html>">+</button></div>
137 <input type="text" class="reply-input" name="text" value="" />
138 <button type="submit"><%= View.Post.SendReply|l10n|html></button>