Only show follow/block links when the shown Sone is not the current one.
[Sone.git] / src / main / resources / templates / knownSones.html
1 <%include include/head.html>
2
3         <h1><%= Page.KnownSones.Page.Title|l10n|html></h1>
4
5         <div id="known-sones">
6                 <%foreach knownSones sone>
7                         <div>
8                                 <div class="profile-link"><a href="viewSone.html?sone=<% sone.id>" title="<% sone.requestUri|html>"><% sone.niceName|html></a></div>
9                                 <div class="last-update">(<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">)</div>
10                                 <%ifnull ! currentSone>
11                                         <%if ! sone.isCurrent>
12                                                 <%if sone.isFriend>
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>" />
16                                                                 <button type="submit"><%= View.Sone.Button.UnfollowSone|l10n|html></button>
17                                                         </form>
18                                                 <%else>
19                                                         <form class="follow" action="followSone.html" method="post">
20                                                                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
21                                                                 <input type="hidden" name="sone" value="<% sone.id>" />
22                                                                 <button type="submit"><%= View.Sone.Button.FollowSone|l10n|html></button>
23                                                         </form>
24                                                 <%/if>
25                                                 <%if sone.isBlocked>
26                                                         <form class="unblock" action="unblockSone.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.UnblockSone|l10n|html></button>
30                                                         </form>
31                                                 <%else>
32                                                         <form class="block" action="blockSone.html" method="post">
33                                                                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
34                                                                 <input type="hidden" name="sone" value="<% sone.id>" />
35                                                                 <button type="submit"><%= View.Sone.Button.BlockSone|l10n|html></button>
36                                                         </form>
37                                                 <%/if>
38                                         <%/if>
39                                 <%/if>
40                         </div>
41                 <%foreachelse>
42                         <div><%= Page.KnownSones.Text.NoKnownSones|l10n|html></div>
43                 <%/foreach>
44         </div>
45
46 <%include include/tail.html>