Convert edit image page test to use new web page test base
[Sone.git] / src / main / resources / templates / include / viewSone.html
1 <div class="sone <% sone.status|html><%if sone.modified> modified<%/if> <% sone.id|css|html><%if sone.local> local<%/if><%if sone.new> new<%/if>">
2         <div class="id hidden"><% 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" title="<% sone.time|unknown|date format=="MMM d, yyyy, HH:mm:ss">"><%sone.lastUpdatedText|l10n|html></span></div>
9         <div>
10                 <div class="profile-link"><a href="viewSone.html?sone=<% sone.id|html>" title="<% sone.requestUri|html>"><% sone.niceName|html></a></div>
11                 <div class="sone-stats">(<%= View.Sone.Stats.Posts|l10n 0=sone.posts.size>, <%= View.Sone.Stats.Replies|l10n 0=sone.replies.size><%if ! sone.allImages.size|match value==0>, <%= View.Sone.Stats.Images|l10n 0=sone.allImages.size><%/if>)</div>
12         </div>
13         <div class="short-request-uri"><% sone.id|html></div>
14         <div class="hidden"><% sone.blacklisted></div>
15         <%if sone.local>
16                 <form class="lock<%if sone.locked> hidden<%/if>" action="lockSone.html" method="post">
17                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
18                         <input type="hidden" name="sone" value="<% sone.id|html>" />
19                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
20                         <button type="submit" title="<%= View.Sone.Button.LockSone.Tooltip|l10n|html>"><%= View.Sone.Button.LockSone|l10n|html></button>
21                 </form>
22                 <form class="unlock<%if !sone.locked> hidden<%/if>" action="unlockSone.html" method="post">
23                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
24                         <input type="hidden" name="sone" value="<% sone.id|html>" />
25                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
26                         <button type="submit" title="<%= View.Sone.Button.UnlockSone.Tooltip|l10n|html>"><%= View.Sone.Button.UnlockSone|l10n|html></button>
27                 </form>
28         <%/if>
29         <%if ! sone.current>
30                 <%ifnull ! currentSone>
31                         <form class="unfollow<%if ! sone.friend> hidden<%/if>" action="unfollowSone.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.UnfollowSone|l10n|html></button>
36                         </form>
37                         <form class="follow<%if sone.friend> hidden<%/if>" action="followSone.html" method="post">
38                                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
39                                 <input type="hidden" name="sone" value="<% sone.id|html>" />
40                                 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
41                                 <button type="submit"><%= View.Sone.Button.FollowSone|l10n|html></button>
42                         </form>
43                 <%/if>
44         <%/if>
45         <div class="spacer">&nbsp;</div>
46 </div>