Make the view of a Sone a lot prettier.
[Sone.git] / src / main / resources / templates / include / viewSone.html
1 <div class="sone <% sone.status><%if sone.modified> modified<%/if>">
2         <div class="unknown-marker" title="<%= View.Sone.Status.Unknown|l10n|html>">?</div>
3         <div class="modified-marker" title="<%= View.Sone.Status.Modified|l10n|html>">!</div>
4         <div class="download-marker" title="<%= View.Sone.Status.Downloading|l10n|html>">⬊</div>
5         <div class="insert-marker" title="<%= View.Sone.Status.Inserting|l10n|html>">⬈</div>
6         <div class="idle-marker" title="<%= View.Sone.Status.Idle|l10n|html>">✔</div>
7         <div class="last-update"><%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss"></div>
8         <div class="profile-link"><a href="viewSone.html?sone=<% sone.id>" title="<% sone.requestUri|html>"><% sone.niceName|html></a></div>
9         <div class="short-request-uri"><% sone.requestUri|substring start=4 length=43|html></div>
10         <%ifnull ! currentSone>
11                 <%if ! sone.current>
12                         <%if sone.friend>
13                                 <form class="unfollow" action="unfollowSone.html" method="post">
14                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
15                                         <input type="hidden" name="sone" value="<% sone.id>" />
16                                         <button type="submit"><%= View.Sone.Button.UnfollowSone|l10n|html></button>
17                                 </form>
18                         <%else>
19                                 <form class="follow" action="followSone.html" method="post">
20                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
21                                         <input type="hidden" name="sone" value="<% sone.id>" />
22                                         <button type="submit"><%= View.Sone.Button.FollowSone|l10n|html></button>
23                                 </form>
24                         <%/if>
25                         <%if sone.blocked>
26                                 <form class="unblock" action="unblockSone.html" method="post">
27                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
28                                         <input type="hidden" name="sone" value="<% sone.id>" />
29                                         <button type="submit"><%= View.Sone.Button.UnblockSone|l10n|html></button>
30                                 </form>
31                         <%else>
32                                 <form class="block" action="blockSone.html" method="post">
33                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
34                                         <input type="hidden" name="sone" value="<% sone.id>" />
35                                         <button type="submit"><%= View.Sone.Button.BlockSone|l10n|html></button>
36                                 </form>
37                         <%/if>
38                 <%/if>
39         <%/if>
40         <div class="spacer">&nbsp;</div>
41 </div>