summaryrefslogtreecommitdiff
path: root/templates/config_index.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fguillot@users.noreply.github.com>2014-03-30 19:53:59 -0400
committerFrédéric Guillot <fguillot@users.noreply.github.com>2014-03-30 19:53:59 -0400
commitd9dfd9d6199b15eba9510ef460e18c9245d9ab12 (patch)
tree6704134700cbc80c39b289620917d4bec011998e /templates/config_index.php
parent34711f584651205cb6738b49df285d93a35393b5 (diff)
Add Mysql/MariaDB support
Diffstat (limited to 'templates/config_index.php')
-rw-r--r--templates/config_index.php26
1 files changed, 14 insertions, 12 deletions
diff --git a/templates/config_index.php b/templates/config_index.php
index 0af2f9c2..fef8909d 100644
--- a/templates/config_index.php
+++ b/templates/config_index.php
@@ -27,18 +27,20 @@
<?= t('Webhooks token:') ?>
<strong><?= Helper\escape($values['webhooks_token']) ?></strong>
</li>
- <li>
- <?= t('Database size:') ?>
- <strong><?= Helper\format_bytes($db_size) ?></strong>
- </li>
- <li>
- <a href="?controller=config&amp;action=downloadDb"><?= t('Download the database') ?></a>
- <?= t('(Gzip compressed Sqlite file)') ?>
- </li>
- <li>
- <a href="?controller=config&amp;action=optimizeDb"><?= t('Optimize the database') ?></a>
- <?= t('(VACUUM command)') ?>
- </li>
+ <?php if (DB_DRIVER === 'sqlite'): ?>
+ <li>
+ <?= t('Database size:') ?>
+ <strong><?= Helper\format_bytes($db_size) ?></strong>
+ </li>
+ <li>
+ <a href="?controller=config&amp;action=downloadDb"><?= t('Download the database') ?></a>
+ <?= t('(Gzip compressed Sqlite file)') ?>
+ </li>
+ <li>
+ <a href="?controller=config&amp;action=optimizeDb"><?= t('Optimize the database') ?></a>
+ <?= t('(VACUUM command)') ?>
+ </li>
+ <?php endif ?>
<li>
<?= t('Official website:') ?>
<a href="http://kanboard.net/" target="_blank" rel="noreferer">http://kanboard.net/</a>