summaryrefslogtreecommitdiff
path: root/app/Template/config
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/config')
-rw-r--r--app/Template/config/about.php2
-rw-r--r--app/Template/config/calendar.php36
-rw-r--r--app/Template/config/integrations.php15
-rw-r--r--app/Template/config/keyboard_shortcuts.php2
-rw-r--r--app/Template/config/sidebar.php3
5 files changed, 6 insertions, 52 deletions
diff --git a/app/Template/config/about.php b/app/Template/config/about.php
index 23a3e6c0..4cce5e63 100644
--- a/app/Template/config/about.php
+++ b/app/Template/config/about.php
@@ -79,8 +79,6 @@
</div>
<?php endif ?>
-<?= $this->render('config/keyboard_shortcuts') ?>
-
<div class="page-header">
<h2><?= t('License') ?></h2>
</div>
diff --git a/app/Template/config/calendar.php b/app/Template/config/calendar.php
deleted file mode 100644
index 0cc3d064..00000000
--- a/app/Template/config/calendar.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<div class="page-header">
- <h2><?= t('Calendar settings') ?></h2>
-</div>
-<form method="post" action="<?= $this->url->href('ConfigController', 'save', array('redirect' => 'calendar')) ?>" autocomplete="off">
-
- <?= $this->form->csrf() ?>
-
- <fieldset>
- <legend><?= t('Project calendar view') ?></legend>
- <?= $this->form->radios('calendar_project_tasks', array(
- 'date_creation' => t('Show tasks based on the creation date'),
- 'date_started' => t('Show tasks based on the start date'),
- ),
- $values
- ) ?>
- </fieldset>
-
- <fieldset>
- <legend><?= t('User calendar view') ?></legend>
- <?= $this->form->radios('calendar_user_tasks', array(
- 'date_creation' => t('Show tasks based on the creation date'),
- 'date_started' => t('Show tasks based on the start date'),
- ),
- $values
- ) ?>
- </fieldset>
-
- <fieldset>
- <legend><?= t('Subtasks time tracking') ?></legend>
- <?= $this->form->checkbox('calendar_user_subtasks_time_tracking', t('Show subtasks based on the time tracking'), 1, $values['calendar_user_subtasks_time_tracking'] == 1) ?>
- </fieldset>
-
- <div class="form-actions">
- <button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
- </div>
-</form>
diff --git a/app/Template/config/integrations.php b/app/Template/config/integrations.php
index 07a90ce2..0a3f9953 100644
--- a/app/Template/config/integrations.php
+++ b/app/Template/config/integrations.php
@@ -4,14 +4,11 @@
<form method="post" action="<?= $this->url->href('ConfigController', 'save', array('redirect' => 'integrations')) ?>" autocomplete="off">
<?= $this->form->csrf() ?>
- <?= $this->hook->render('template:config:integrations', array('values' => $values)) ?>
-
- <h3><img src="<?= $this->url->dir() ?>assets/img/gravatar-icon.png"/>&nbsp;<?= t('Gravatar') ?></h3>
- <div class="panel">
- <?= $this->form->checkbox('integration_gravatar', t('Enable Gravatar images'), 1, $values['integration_gravatar'] == 1) ?>
- <div class="form-actions">
- <button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
- </div>
- </div>
+ <?php $contents = $this->hook->render('template:config:integrations', array('values' => $values)) ?>
+ <?php if (empty($contents)): ?>
+ <p class="alert"><?= t('There is no external integration installed.') ?></p>
+ <?php else: ?>
+ <?= $contents ?>
+ <?php endif ?>
</form>
diff --git a/app/Template/config/keyboard_shortcuts.php b/app/Template/config/keyboard_shortcuts.php
index 6ac71ee0..4e78dbe0 100644
--- a/app/Template/config/keyboard_shortcuts.php
+++ b/app/Template/config/keyboard_shortcuts.php
@@ -6,9 +6,7 @@
<ul>
<li><?= t('Switch to the project overview') ?> = <strong>v o</strong></li>
<li><?= t('Switch to the board view') ?> = <strong>v b</strong></li>
- <li><?= t('Switch to the calendar view') ?> = <strong>v c</strong></li>
<li><?= t('Switch to the list view') ?> = <strong>v l</strong></li>
- <li><?= t('Switch to the Gantt chart view') ?> = <strong>v g</strong></li>
</ul>
<h3><?= t('Board view') ?></h3>
<ul>
diff --git a/app/Template/config/sidebar.php b/app/Template/config/sidebar.php
index 95be963b..2f265ed2 100644
--- a/app/Template/config/sidebar.php
+++ b/app/Template/config/sidebar.php
@@ -15,9 +15,6 @@
<li <?= $this->app->checkMenuSelection('ConfigController', 'board') ?>>
<?= $this->url->link(t('Board settings'), 'ConfigController', 'board') ?>
</li>
- <li <?= $this->app->checkMenuSelection('ConfigController', 'calendar') ?>>
- <?= $this->url->link(t('Calendar settings'), 'ConfigController', 'calendar') ?>
- </li>
<li <?= $this->app->checkMenuSelection('TagController', 'index') ?>>
<?= $this->url->link(t('Tags management'), 'TagController', 'index') ?>
</li>