Add CSS class for local Sones.
[Sone.git] / src / main / resources / templates / include / viewSone.html
1 <div class="sone <% sone.status|html><%if sone.modified> modified<%/if> <% sone.id|html><%if sone.local> local<%/if>">
2         <div class="id"><% sone.id|html></div>
3         <div class="unknown-marker" title="<%= View.Sone.Status.Unknown|l10n|html>">?</div>
4         <div class="modified-marker" title="<%= View.Sone.Status.Modified|l10n|html>">!</div>
5         <div class="download-marker" title="<%= View.Sone.Status.Downloading|l10n|html>">⬊</div>
6         <div class="insert-marker" title="<%= View.Sone.Status.Inserting|l10n|html>">⬈</div>
7         <div class="idle-marker" title="<%= View.Sone.Status.Idle|l10n|html>">✔</div>
8         <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>
9         <div class="profile-link"><a href="viewSone.html?sone=<% sone.id|html>" title="<% sone.requestUri|html>"><% sone.niceName|html></a></div>
10         <div class="short-request-uri"><% sone.requestUri|substring start=4 length=43|html></div>
11         <%ifnull ! currentSone>
12                 <%if ! sone.current>
13                         <form class="unfollow<%if ! sone.friend> hidden<%/if>" 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                         <form class="follow<%if sone.friend> hidden<%/if>" action="followSone.html" method="post">
20                                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
21                                 <input type="hidden" name="sone" value="<% sone.id|html>" />
22                                 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
23                                 <button type="submit"><%= View.Sone.Button.FollowSone|l10n|html></button>
24                         </form>
25                         <form class="unblock<%if ! sone.blocked> hidden<%/if>" action="unblockSone.html" method="post">
26                                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
27                                 <input type="hidden" name="sone" value="<% sone.id|html>" />
28                                 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
29                                 <button type="submit"><%= View.Sone.Button.UnblockSone|l10n|html></button>
30                         </form>
31                         <form class="block<%if sone.blocked> hidden<%/if>" action="blockSone.html" method="post">
32                                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
33                                 <input type="hidden" name="sone" value="<% sone.id|html>" />
34                                 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
35                                 <button type="submit"><%= View.Sone.Button.BlockSone|l10n|html></button>
36                         </form>
37                 <%/if>
38         <%/if>
39         <div class="spacer">&nbsp;</div>
40 </div>