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 <%include include/soneMenu.html class=="sone-post-menu" sone=post.sone>
7 <div class="avatar post-avatar" >
9 <img src="/WebOfTrust/GetIdenticon?identity=<% post.sone.id|html>&width=48&height=48" width="48" height="48" alt="Avatar Image" />
11 <img src="images/sone-avatar.png" width="48" height="48" alt="Avatar Image" />
14 <div class="inner-part">
15 <div<%if !post.loaded> class="hidden"<%/if>>
16 <div class="author profile-link"><a href="viewSone.html?sone=<% post.sone.id|html>"><% post.sone.niceName|html></a></div>
17 <%ifnull !post.recipient>
18 <span class="recipient-to">→</span>
19 <%ifnull post.recipient.identity>
20 <div class="recipient profile-link"><a href="viewSone.html?sone=<% post.recipient.id|html>"><%= View.Post.UnknownAuthor|l10n|html></a></div>
22 <div class="recipient profile-link"><a href="viewSone.html?sone=<% post.recipient.id|html>"><% post.recipient.niceName|html></a></div>
25 <% post.text|html|store key=originalText text=true>
26 <% post.text|parse sone=post.sone|store key=parsedText text=true>
27 <div class="post-text raw-text<%if !raw> hidden<%/if>"><% originalText></div>
28 <div class="post-text text<%if raw> hidden<%/if>"><% parsedText></div>
30 <div class="post-status-line status-line<%if !post.loaded> hidden<%/if>">
31 <div class="bookmarks">
32 <form class="unbookmark<%if !post.bookmarked> hidden<%/if>" action="unbookmark.html" method="post">
33 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
34 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
35 <input type="hidden" name="post" value="<% post.id|html>" />
36 <button type="submit" title="<%= View.Post.Bookmarks.PostIsBookmarked|l10n|html>">★</button>
38 <form class="bookmark<%if post.bookmarked> hidden<%/if>" action="bookmark.html" method="post">
39 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
40 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
41 <input type="hidden" name="post" value="<% post.id|html>" />
42 <button type="submit" title="<%= View.Post.Bookmarks.PostIsNotBookmarked|l10n|html>">☆</button>
45 <span class='separator'>·</span>
46 <div class="time"><a href="viewPost.html?post=<% post.id|html>"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></a></div>
47 <span class='separator'>·</span>
48 <div class="permalink permalink-post"><a href="post://<%post.id|html>">[<%= View.Post.Permalink|l10n|html>]</a></div>
49 <span class='separator'>·</span>
50 <div class="permalink permalink-author"><a href="sone://<%post.sone.id|html>">[<%= View.Post.PermalinkAuthor|l10n|html>]</a></div>
51 <%if ! originalText|match key=parsedText>
52 <span class='separator'>·</span>
53 <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>
55 <div class="likes<%if post.likes.size|match value=0> hidden<%/if>">
56 <span class='separator'>·</span>
57 <span title="<% post.likes.soneNames|html>">↑<span class="like-count"><% post.likes.size></span></span>
59 <%ifnull ! currentSone>
60 <span class='separator'>·</span>
61 <form class="like like-post<%if post.liked> hidden<%/if>" action="like.html" method="post">
62 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
63 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
64 <input type="hidden" name="type" value="post" />
65 <input type="hidden" name="post" value="<% post.id|html>" />
66 <button type="submit" value="1"><%= View.Post.LikeLink|l10n|html></button>
68 <form class="unlike unlike-post<%if ! post.liked> hidden<%/if>" action="unlike.html" method="post">
69 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
70 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
71 <input type="hidden" name="type" value="post" />
72 <input type="hidden" name="post" value="<% post.id|html>" />
73 <button type="submit" value="1"><%= View.Post.UnlikeLink|l10n|html></button>
75 <%if !post.sone.current>
76 <span class='separator'>·</span>
77 <form class="trust post-trust<%if post.sone.trust.assigned> hidden<%/if>" action="trust.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="sone" value="<% post.sone.id|html>" />
81 <button type="submit" title="<%= View.Trust.Tooltip.Trust|l10n|html>">✓</button>
83 <form class="distrust post-distrust<%if post.sone.trust.assigned> hidden<%/if>" action="distrust.html" method="post">
84 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
85 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
86 <input type="hidden" name="sone" value="<% post.sone.id|html>" />
87 <button type="submit" title="<%= View.Trust.Tooltip.Distrust|l10n|html>">✗</button>
89 <form class="untrust post-untrust<%if !post.sone.trust.assigned> hidden<%/if>" action="untrust.html" method="post">
90 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
91 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
92 <input type="hidden" name="sone" value="<% post.sone.id|html>" />
93 <button type="submit" title="<%= View.Trust.Tooltip.Untrust|l10n|html>">↶</button>
98 <span class='separator'>·</span>
99 <form class="delete delete-post" action="deletePost.html" method="post">
100 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
101 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
102 <input type="hidden" name="post" value="<% post.id|html>" />
103 <button type="submit"><%= View.Post.DeleteLink|l10n|html></button>
107 <div<%if post.loaded> class="hidden"<%/if>>
108 <%= View.Post.NotDownloaded|l10n|html>
110 <div class="replies">
111 <%foreach post.replies reply>
112 <%include include/viewReply.html>
114 <%ifnull ! currentSone>
115 <div class="create-reply">
116 <form method="post" action="createReply.html">
117 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
118 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
119 <input type="hidden" name="post" value="<% post.id|html>" />
121 <select name="sender" title="<%= View.UpdateStatus.Text.ChooseSenderIdentity|l10n|html>">
122 <%foreach localSones localSone|sort>
123 <option value="<% localSone.id|html>"<%if localSone.current> selected="selected"<%/if>><% localSone.niceName|html></option>
127 <div class="select-sender"><button type="button" title="<%= View.UpdateStatus.Text.ChooseSenderIdentity|l10n|html>">+</button></div>
128 <input type="text" class="reply-input" name="text" value="" />
129 <button type="submit"><%= View.Post.SendReply|l10n|html></button>