Show the time of the last update.
[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 class="request-uri"><span title="<% sone.requestUri|html>"><% sone.requestUri|substring start=4 length=43|html>…</span></div>
10                                 <div class="last-update"><% sone.time|date format="MMM d, yyyy, HH:mm:ss"></div>
11                                 <%ifnull ! currentSone>
12                                         <%if sone.isBlocked>
13                                                 <form class="unblock" action="unblockSone.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.UnblockSone|l10n|html></button>
17                                                 </form>
18                                         <%else>
19                                                 <form class="block" action="blockSone.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.BlockSone|l10n|html></button>
23                                                 </form>
24                                         <%/if>
25                                 <%/if>
26                         </div>
27                 <%foreachelse>
28                         <div><%= Page.KnownSones.Text.NoKnownSones|l10n|html></div>
29                 <%/foreach>
30         </div>
31
32 <%include include/tail.html>