Too many changes to list them all.
[Sone.git] / src / main / resources / templates / knownSones.html
index 9cf616c..456152a 100644 (file)
@@ -1,31 +1,24 @@
 <%include include/head.html>
 
+       <script language="javascript">
+               $(document).ready(function() {
+                       registerInputTextareaSwap("#add-sone input[name=request-uri]", "WebInterface.DefaultText.SoneRequestURI", "request-uri", false, true);
+               })
+       </script>
+
        <h1><%= Page.KnownSones.Page.Title|l10n|html></h1>
 
        <div id="known-sones">
-               <%foreach knownSones sone>
-                       <div>
-                               <div class="profile-link"><a href="viewSone.html?sone=<% sone.id>"><% sone.niceName|html></a></div>
-                               <div>(<% sone.requestUri|html>)</div>
-                               <%ifnull ! currentSone>
-                                       <%if sone.isBlocked>
-                                               <form class="unblock" action="unblockSone.html" method="post">
-                                                       <input type="hidden" name="formPassword" value="<% formPassword|html>" />
-                                                       <input type="hidden" name="sone" value="<% sone.id>" />
-                                                       <button type="submit"><%= View.Sone.Button.UnblockSone|l10n|html></button>
-                                               </form>
-                                       <%else>
-                                               <form class="block" action="blockSone.html" method="post">
-                                                       <input type="hidden" name="formPassword" value="<% formPassword|html>" />
-                                                       <input type="hidden" name="sone" value="<% sone.id>" />
-                                                       <button type="submit"><%= View.Sone.Button.BlockSone|l10n|html></button>
-                                               </form>
-                                       <%/if>
-                               <%/if>
-                       </div>
+               <%getpage parameter=page>
+               <%paginate list=knownSones pagesize=25>
+               <%= page|store key=pageParameter>
+               <%include include/pagination.html>
+               <%foreach pagination.items sone>
+                       <%include include/viewSone.html>
                <%foreachelse>
                        <div><%= Page.KnownSones.Text.NoKnownSones|l10n|html></div>
                <%/foreach>
+               <%include include/pagination.html>
        </div>
 
 <%include include/tail.html>