Tomboy on windows syncs fine with grauphel.
[grauphel.git] / templates / tokens.php
index 531883d0e4977229034e57a074c9b009206c6b96..48e5998a51f60bf80461fadb5ab0035956457d77 100644 (file)
@@ -3,11 +3,30 @@
 <?php /** @var $l OC_L10N */ ?>
 <?php $_['appNavigation']->printPage(); ?>
 
-<div id="app-content">
+<div id="app-content" class="list">
   <h1>Manage access tokens</h1>
-  <ul>
+  <table class="table">
+   <thead>
+    <tr>
+     <th>Token</th>
+     <th>Client</th>
+     <th>Last use</th>
+    </tr>
+   </thead>
+   <tbody>
     <?php foreach ($_['tokens'] as $token) { ?>
-      <li data-id="<?php p($token->tokenKey); ?>"><a href="#"><?php p($token->tokenKey); ?></a></li>
+      <tr>
+       <td><?php p($token->tokenKey); ?></td>
+       <td title="<?php p($token->client); ?>"><?php p($_['client']->getNiceName($token->client)); ?></td>
+       <td>
+        <?php p(\OCP\Util::formatDate($token->lastuse)); ?>
+        <form method="POST" action="<?php p(OCP\Util::linkToRoute('grauphel.token.delete', array('username' => $_['username'], 'tokenKey' => $token->tokenKey))); ?>">
+           <input type="hidden" name="delete" value="1" />
+           <button type="submit" class="icon-delete delete action" original-title="Delete"/>
+        </form>
+       </td>
+      </tr>
     <?php } ?>
-  </ul>
+   </tbody>
+ </table>
 </div>