2014-11-19 01:16:14 +01:00
|
|
|
<div class="page-header">
|
2015-01-13 22:03:24 +01:00
|
|
|
<h2><?= $title ?></h2>
|
|
|
|
<nav>
|
|
|
|
<ul>
|
|
|
|
<li><a href="?action=config"><?= t('general') ?></a></li>
|
|
|
|
<li><a href="?action=services"><?= t('external services') ?></a></li>
|
|
|
|
<li><a href="?action=api"><?= t('api') ?></a></li>
|
|
|
|
<li class="active"><a href="?action=database"><?= t('database') ?></a></li>
|
|
|
|
<li><a href="?action=help"><?= t('help') ?></a></li>
|
|
|
|
<li><a href="?action=about"><?= t('about') ?></a></li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2014-11-19 01:16:14 +01:00
|
|
|
</div>
|
|
|
|
<section>
|
2015-01-17 23:15:47 +01:00
|
|
|
<div class="panel panel-default">
|
2014-11-19 01:16:14 +01:00
|
|
|
<ul>
|
|
|
|
<li><?= t('Database size:') ?> <strong><?= Helper\format_bytes($db_size) ?></strong></li>
|
|
|
|
<li><a href="?action=optimize-db&csrf=<?= $csrf ?>"><?= t('Optimize the database') ?></a> <?= t('(VACUUM command)') ?></li>
|
|
|
|
<li><a href="?action=download-db&csrf=<?= $csrf ?>"><?= t('Download the entire database') ?></a> <?= t('(Gzip compressed Sqlite file)') ?></li>
|
|
|
|
<?php if (ENABLE_MULTIPLE_DB): ?>
|
|
|
|
<li>
|
|
|
|
<a href="?action=new-db"><?= t('Add a new database (new user)') ?></a>
|
|
|
|
</li>
|
|
|
|
<?php endif ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</section>
|