- <div class="time"><a href="viewPost.html?post=<% post.id>"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></a></div>
- <%if post.sone.isCurrent><div class="delete"><a href="deletePost.html?post=<% post.id>"><%= View.Post.DeleteLink|l10n|html></a></div><%/if>
+ <div class="status-line">
+ <div class="time"><a href="viewPost.html?post=<% post.id|html>"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></a></div>
+ <div class="likes<%if post.likes.size|match value=0> hidden<%/if>"><span>⬆<span class="like-count"><% post.likes.size></span></span></div>
+ <%ifnull ! currentSone>
+ <form class="like<%if post.liked> hidden<%/if>" action="like.html" method="post">
+ <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+ <input type="hidden" name="returnPage" value="<% request.uri|html>" />
+ <input type="hidden" name="type" value="post" />
+ <input type="hidden" name="post" value="<% post.id|html>" />
+ <button type="submit" value="1"><%= View.Post.LikeLink|l10n|html></button>
+ </form>
+ <form class="unlike<%if ! post.liked> hidden<%/if>" action="unlike.html" method="post">
+ <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+ <input type="hidden" name="returnPage" value="<% request.uri|html>" />
+ <input type="hidden" name="type" value="post" />
+ <input type="hidden" name="post" value="<% post.id|html>" />
+ <button type="submit" value="1"><%= View.Post.UnlikeLink|l10n|html></button>
+ </form>
+ <%/if>
+ <%if post.sone.current>
+ <form class="delete" action="deletePost.html" method="post">
+ <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+ <input type="hidden" name="returnPage" value="<% request.uri|html>" />
+ <input type="hidden" name="post" value="<% post.id|html>" />
+ <button type="submit"><%= View.Post.DeleteLink|l10n|html></button>
+ </form>
+ <%/if>
+ </div>