summaryrefslogtreecommitdiff
path: root/app/Template/config
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-04-01 17:56:20 -0400
committerFrederic Guillot <fred@kanboard.net>2017-04-01 17:56:20 -0400
commitcd734e5ba79b98acc42a45a16caf06812cf8095e (patch)
treefe77f58b85c721195c1d5bbefb45df4c2a27545b /app/Template/config
parent5cc488947305eea5b9762997222c84d6007761c8 (diff)
Move Gravatar to external plugin
Diffstat (limited to 'app/Template/config')
-rw-r--r--app/Template/config/integrations.php15
1 files changed, 6 insertions, 9 deletions
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>