git.cweiske.de
/
grauphel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mark grauphel as compatible with Nextcloud 16
[grauphel.git]
/
templates
/
tokens.php
diff --git
a/templates/tokens.php
b/templates/tokens.php
index 48e5998a51f60bf80461fadb5ab0035956457d77..9d812ebe52e7a8e1c7d5636c589eb7c56db9e455 100644
(file)
--- a/
templates/tokens.php
+++ b/
templates/tokens.php
@@
-1,11
+1,18
@@
-<link rel="stylesheet" href="<?php p(OCP\Util::linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
+<?php style('grauphel', 'grauphel'); ?>
+<?php script('grauphel', 'grauphel'); ?>
<?php /** @var $l OC_L10N */ ?>
<?php $_['appNavigation']->printPage(); ?>
<div id="app-content" class="list">
<?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>
<h1>Manage access tokens</h1>
- <table class="table">
+ <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>
<thead>
<tr>
<th>Token</th>
@@
-15,14
+22,17
@@
</thead>
<tbody>
<?php foreach ($_['tokens'] as $token) { ?>
</thead>
<tbody>
<?php foreach ($_['tokens'] as $token) { ?>
- <tr>
+ <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>
<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(OC
P\Util::
linkToRoute('grauphel.token.delete', array('username' => $_['username'], 'tokenKey' => $token->tokenKey))); ?>">
+ <?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" />
<input type="hidden" name="delete" value="1" />
- <button type="submit" class="icon-delete delete action" original-title="Delete"/>
+ <button type="submit" class="icon-delete delete action"
+ original-title="Delete"
+ data-token="token-<?php p($token->tokenKey); ?>"
+ />
</form>
</td>
</tr>
</form>
</td>
</tr>