blob: 9d812ebe52e7a8e1c7d5636c589eb7c56db9e455 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<?php style('grauphel', 'grauphel'); ?>
<?php script('grauphel', 'grauphel'); ?>
<?php /** @var $l OC_L10N */ ?>
<?php $_['appNavigation']->printPage(); ?>
<div id="app-content" class="list">
<div id="searchresults" class="hidden"></div>
<h1>Manage access tokens</h1>
<p>
Here you see which applications have access to the notes.
You can permanently revoke access by clicking the "delete" icon on the right
side of each token row.
</p>
<table class="table" id="grauphel-tokens">
<thead>
<tr>
<th>Token</th>
<th>Client</th>
<th>Last use</th>
</tr>
</thead>
<tbody>
<?php foreach ($_['tokens'] as $token) { ?>
<tr id="token-<?php p($token->tokenKey); ?>">
<td><?php p($token->tokenKey); ?></td>
<td title="<?php p($token->client); ?>"><?php p($_['client']->getNiceName($token->client)); ?></td>
<td>
<?php p($_['date']->formatDate($token->lastuse)); ?>
<form method="POST" action="<?php p(OC::$server->getURLGenerator()->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"
data-token="token-<?php p($token->tokenKey); ?>"
/>
</form>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
|