Change links to HTML forms.
[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>"><% sone.niceName|html></a></div>
9                                 <div>(<% sone.requestUri|html>)</div>
10                                 <%if sone.isBlocked>
11                                         <form class="unblock" action="unblockSone.html" method="post">
12                                                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
13                                                 <input type="hidden" name="sone" value="<% sone.id>" />
14                                                 <button type="submit"><%= View.Sone.Button.UnblockSone|l10n|html></button>
15                                         </form>
16                                 <%else>
17                                         <form class="block" action="blockSone.html" method="post">
18                                                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
19                                                 <input type="hidden" name="sone" value="<% sone.id>" />
20                                                 <button type="submit"><%= View.Sone.Button.BlockSone|l10n|html></button>
21                                         </form>
22                                 <%/if>
23                         </div>
24                 <%foreachelse>
25                         <div><%= Page.KnownSones.Text.NoKnownSones|l10n|html></div>
26                 <%/foreach>
27         </div>
28
29 <%include include/tail.html>