Show markers for Sone statuses.
[Sone.git] / src / main / resources / templates / include / viewSone.html
1 <div class="sone <% sone.status><%if sone.modified> modified<%/if>">
2         <div class="profile-link"><a href="viewSone.html?sone=<% sone.id>" title="<% sone.requestUri|html>"><% sone.niceName|html></a></div>
3         <div class="last-update">(<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">)</div>
4         <div class="modified-marker">!</div>
5         <div class="download-marker">⬊</div>
6         <div class="insert-marker">⬈</div>
7         <div class="idle-marker"></div>
8         <%ifnull ! currentSone>
9                 <%if ! sone.current>
10                         <%if sone.friend>
11                                 <form class="unfollow" action="unfollowSone.html" method="post">
12                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
13                                         <input type="hidden" name="sone" value="<% sone.id>" />
14                                         <button type="submit"><%= View.Sone.Button.UnfollowSone|l10n|html></button>
15                                 </form>
16                         <%else>
17                                 <form class="follow" action="followSone.html" method="post">
18                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
19                                         <input type="hidden" name="sone" value="<% sone.id>" />
20                                         <button type="submit"><%= View.Sone.Button.FollowSone|l10n|html></button>
21                                 </form>
22                         <%/if>
23                         <%if sone.blocked>
24                                 <form class="unblock" action="unblockSone.html" method="post">
25                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
26                                         <input type="hidden" name="sone" value="<% sone.id>" />
27                                         <button type="submit"><%= View.Sone.Button.UnblockSone|l10n|html></button>
28                                 </form>
29                         <%else>
30                                 <form class="block" action="blockSone.html" method="post">
31                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
32                                         <input type="hidden" name="sone" value="<% sone.id>" />
33                                         <button type="submit"><%= View.Sone.Button.BlockSone|l10n|html></button>
34                                 </form>
35                         <%/if>
36                 <%/if>
37         <%/if>
38 </div>