add known working versions
[grauphel.git] / templates / tokens.php
1 <link rel="stylesheet" href="<?php p(OCP\Util::linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
2
3 <?php /** @var $l OC_L10N */ ?>
4 <?php $_['appNavigation']->printPage(); ?>
5
6 <div id="app-content" class="list">
7   <h1>Manage access tokens</h1>
8   <table class="table">
9    <thead>
10     <tr>
11      <th>Token</th>
12      <th>Client</th>
13      <th>Last use</th>
14     </tr>
15    </thead>
16    <tbody>
17     <?php foreach ($_['tokens'] as $token) { ?>
18       <tr>
19        <td><?php p($token->tokenKey); ?></td>
20        <td title="<?php p($token->client); ?>"><?php p($_['client']->getNiceName($token->client)); ?></td>
21        <td>
22         <?php p(\OCP\Util::formatDate($token->lastuse)); ?>
23         <form method="POST" action="<?php p(OCP\Util::linkToRoute('grauphel.token.delete', array('username' => $_['username'], 'tokenKey' => $token->tokenKey))); ?>">
24            <input type="hidden" name="delete" value="1" />
25            <button type="submit" class="icon-delete delete action" original-title="Delete"/>
26         </form>
27        </td>
28       </tr>
29     <?php } ?>
30    </tbody>
31  </table>
32 </div>