diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 229: Slight changes to auth tokens template

Message ID 20110819042115.16581.5765.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Zygmunt Krynicki Aug. 19, 2011, 4:21 a.m. UTC
------------------------------------------------------------
revno: 229
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
branch nick: pristine
timestamp: Thu 2011-08-18 17:01:52 +0200
message:
  Slight changes to auth tokens template
modified:
  lava_server/templates/linaro_django_xmlrpc/tokens.html


--
lp:lava-server
https://code.launchpad.net/~linaro-validation/lava-server/trunk

You are subscribed to branch lp:lava-server.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_server/templates/linaro_django_xmlrpc/tokens.html'
--- lava_server/templates/linaro_django_xmlrpc/tokens.html	2011-07-13 10:24:17 +0000
+++ lava_server/templates/linaro_django_xmlrpc/tokens.html	2011-08-18 15:01:52 +0000
@@ -20,25 +20,21 @@ 
 
 
 {% block content %}
-<h1>Authentication Tokens</h1>
 <script type="text/javascript" charset="utf-8"> 
   $(document).ready(function() {
     $('#tokens').dataTable({
-      "bJQueryUI": true,
-      "sPaginationType": "full_numbers",
-      "aaSorting": [[1, "desc"]],
+      bJQueryUI: true,
+      sPaginationType: "full_numbers",
+      aaSorting: [[1, "desc"]],
     });
     $('#tokens tbody td a').button();
     $('button').button();
   });
 </script> 
-<p>
-  Authentication tokens allow scripts
-  using <a href="https://launchpad.net/lava-tool">lava-tool</a> to
-  securely access LAVA resources.
-</p>
-<p>You can <a href="{% url linaro_django_xmlrpc.views.create_token %}">create a new authentication token</a>.</p>
 <table id="tokens" class="demo_jui display">
+  <caption>
+    Available authentication tokens for {{ request.user.username }}
+  </caption>
   <thead>
     <tr>
       <th>ID</th>
@@ -74,3 +70,13 @@ 
   </tbody>
 </table>
 {% endblock %}
+
+
+{% block sidebar %}
+<p>
+  Authentication tokens allow scripts
+  using <a href="https://launchpad.net/lava-tool">lava-tool</a> to
+  securely access LAVA resources.
+</p>
+<p>You can <a href="{% url linaro_django_xmlrpc.views.create_token %}">create a new authentication token</a>.</p>
+{% endblock %}