Duplicate IDs are not allowed in HTML and do make problems. Use classes.
[Sone.git] / src / main / resources / templates / include / viewSone.html
1 <div class="sone <% sone.status|html><%if sone.modified> modified<%/if> <% sone.id|html>">
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                         <%if sone.friend>
14                                 <form class="unfollow" action="unfollowSone.html" method="post">
15                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
16                                         <input type="hidden" name="sone" value="<% sone.id|html>" />
17                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
18                                         <button type="submit"><%= View.Sone.Button.UnfollowSone|l10n|html></button>
19                                 </form>
20                         <%else>
21                                 <form class="follow" action="followSone.html" method="post">
22                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
23                                         <input type="hidden" name="sone" value="<% sone.id|html>" />
24                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
25                                         <button type="submit"><%= View.Sone.Button.FollowSone|l10n|html></button>
26                                 </form>
27                         <%/if>
28                         <%if sone.blocked>
29                                 <form class="unblock" action="unblockSone.html" method="post">
30                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
31                                         <input type="hidden" name="sone" value="<% sone.id|html>" />
32                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
33                                         <button type="submit"><%= View.Sone.Button.UnblockSone|l10n|html></button>
34                                 </form>
35                         <%else>
36                                 <form class="block" action="blockSone.html" method="post">
37                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
38                                         <input type="hidden" name="sone" value="<% sone.id|html>" />
39                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
40                                         <button type="submit"><%= View.Sone.Button.BlockSone|l10n|html></button>
41                                 </form>
42                         <%/if>
43                 <%/if>
44         <%/if>
45         <div class="spacer">&nbsp;</div>
46 </div>