Move most of the JavaScript to sone.js.
[Sone.git] / src / main / resources / templates / include / viewSone.html
1 <div id="<% sone.id|html>" class="sone <% sone.status|html><%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> <span class="time"><% sone.time|date format="MMM d, yyyy, HH:mm:ss"></span></div>
8         <div class="profile-link"><a href="viewSone.html?sone=<% sone.id|html>" 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|html>" />
16                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
17                                         <button type="submit"><%= View.Sone.Button.UnfollowSone|l10n|html></button>
18                                 </form>
19                         <%else>
20                                 <form class="follow" action="followSone.html" method="post">
21                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
22                                         <input type="hidden" name="sone" value="<% sone.id|html>" />
23                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
24                                         <button type="submit"><%= View.Sone.Button.FollowSone|l10n|html></button>
25                                 </form>
26                         <%/if>
27                         <%if sone.blocked>
28                                 <form class="unblock" action="unblockSone.html" method="post">
29                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
30                                         <input type="hidden" name="sone" value="<% sone.id|html>" />
31                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
32                                         <button type="submit"><%= View.Sone.Button.UnblockSone|l10n|html></button>
33                                 </form>
34                         <%else>
35                                 <form class="block" action="blockSone.html" method="post">
36                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
37                                         <input type="hidden" name="sone" value="<% sone.id|html>" />
38                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
39                                         <button type="submit"><%= View.Sone.Button.BlockSone|l10n|html></button>
40                                 </form>
41                         <%/if>
42                 <%/if>
43         <%/if>
44         <div class="spacer">&nbsp;</div>
45 </div>