summaryrefslogtreecommitdiff
path: root/app/Templates/config_api.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-04 23:31:03 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-04 23:31:03 -0400
commit8e5673e3d289e4d28b4fc9f20721bda9f1c858c7 (patch)
treea5dc3eff7408e8709d20ea92b926c5424d70c5f9 /app/Templates/config_api.php
parentf531d57dc27b9d1568de0a10b19f69e8c2b2f156 (diff)
Improve settings page and move some config parameters to the database
Diffstat (limited to 'app/Templates/config_api.php')
-rw-r--r--app/Templates/config_api.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/Templates/config_api.php b/app/Templates/config_api.php
new file mode 100644
index 00000000..037ea08d
--- /dev/null
+++ b/app/Templates/config_api.php
@@ -0,0 +1,18 @@
+<div class="page-header">
+ <h2><?= t('API') ?></h2>
+</div>
+<section class="listing">
+ <ul>
+ <li>
+ <?= t('API token:') ?>
+ <strong><?= Helper\escape($values['api_token']) ?></strong>
+ </li>
+ <li>
+ <?= t('API endpoint:') ?>
+ <input type="text" readonly="readonly" value="<?= Helper\get_current_base_url().'jsonrpc.php' ?>">
+ </li>
+ <li>
+ <?= Helper\a(t('Reset token'), 'config', 'token', array('type' => 'api'), true) ?>
+ </li>
+ </ul>
+</section> \ No newline at end of file