Fix bug #10: OAuth does not work on ovh.com server
[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   <p>
9     Here you see which applications have access to the notes.
10     You can permanently revoke access by clicking the "delete" icon on the right
11     side of each token row.
12   </p>
13   <table class="table">
14    <thead>
15     <tr>
16      <th>Token</th>
17      <th>Client</th>
18      <th>Last use</th>
19     </tr>
20    </thead>
21    <tbody>
22     <?php foreach ($_['tokens'] as $token) { ?>
23       <tr>
24        <td><?php p($token->tokenKey); ?></td>
25        <td title="<?php p($token->client); ?>"><?php p($_['client']->getNiceName($token->client)); ?></td>
26        <td>
27         <?php p(\OCP\Util::formatDate($token->lastuse)); ?>
28         <form method="POST" action="<?php p(OCP\Util::linkToRoute('grauphel.token.delete', array('username' => $_['username'], 'tokenKey' => $token->tokenKey))); ?>">
29            <input type="hidden" name="delete" value="1" />
30            <button type="submit" class="icon-delete delete action" original-title="Delete"/>
31         </form>
32        </td>
33       </tr>
34     <?php } ?>
35    </tbody>
36  </table>
37 </div>