Rename “isBlocked” property to “blocked”.
[Sone.git] / src / main / resources / templates / include / viewSone.html
1 <div class="sone">
2         <div class="profile-link"><a href="viewSone.html?sone=<% sone.id>" title="<% sone.requestUri|html>"><% sone.niceName|html></a></div>
3         <div class="last-update">(<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">)</div>
4         <%ifnull ! currentSone>
5                 <%if ! sone.isCurrent>
6                         <%if sone.isFriend>
7                                 <form class="unfollow" action="unfollowSone.html" method="post">
8                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
9                                         <input type="hidden" name="sone" value="<% sone.id>" />
10                                         <button type="submit"><%= View.Sone.Button.UnfollowSone|l10n|html></button>
11                                 </form>
12                         <%else>
13                                 <form class="follow" action="followSone.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.FollowSone|l10n|html></button>
17                                 </form>
18                         <%/if>
19                         <%if sone.blocked>
20                                 <form class="unblock" action="unblockSone.html" method="post">
21                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
22                                         <input type="hidden" name="sone" value="<% sone.id>" />
23                                         <button type="submit"><%= View.Sone.Button.UnblockSone|l10n|html></button>
24                                 </form>
25                         <%else>
26                                 <form class="block" action="blockSone.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.BlockSone|l10n|html></button>
30                                 </form>
31                         <%/if>
32                 <%/if>
33         <%/if>
34 </div>