67 lines
2.5 KiB
PHP
67 lines
2.5 KiB
PHP
<section id="main">
|
|
|
|
<?php if ($user['is_admin']): ?>
|
|
<div class="page-header">
|
|
<h2><?= t('Application Settings') ?></h2>
|
|
</div>
|
|
<section>
|
|
<form method="post" action="?controller=config&action=save" autocomplete="off">
|
|
|
|
<?= Helper\form_label(t('Language'), 'language') ?>
|
|
<?= Helper\form_select('language', $languages, $values, $errors) ?><br/>
|
|
|
|
<?= Helper\form_label(t('Timezone'), 'timezone') ?>
|
|
<?= Helper\form_select('timezone', $timezones, $values, $errors) ?><br/>
|
|
|
|
<div class="form-actions">
|
|
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
<div class="page-header">
|
|
<h2><?= t('More information') ?></h2>
|
|
</div>
|
|
<section class="settings">
|
|
<ul>
|
|
<li>
|
|
<?= 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&action=downloadDb"><?= t('Download the database') ?></a>
|
|
<?= t('(Gzip compressed Sqlite file)') ?>
|
|
</li>
|
|
<li>
|
|
<a href="?controller=config&action=optimizeDb"><?= t('Optimize the database') ?></a>
|
|
<?= t('(VACUUM command)') ?>
|
|
</li>
|
|
<li>
|
|
<?= t('Official website:') ?>
|
|
<a href="http://kanboard.net/" target="_blank" rel="noreferer">http://kanboard.net/</a>
|
|
</li>
|
|
<li>
|
|
<?= t('Application version:') ?>
|
|
<?= APP_VERSION ?>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<?php endif ?>
|
|
|
|
<div class="page-header">
|
|
<h2><?= t('User Settings') ?></h2>
|
|
</div>
|
|
<section class="settings">
|
|
<ul>
|
|
<li>
|
|
<strong><?= t('My default project:') ?> </strong>
|
|
<?= (isset($user['default_project_id']) && isset($projects[$user['default_project_id']])) ? Helper\escape($projects[$user['default_project_id']]) : t('None') ?>,
|
|
<a href="?controller=user&action=edit&user_id=<?= $user['id'] ?>"><?= t('edit') ?></a>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</section>
|