diff options
author | Max Kamashev <kamashev@gollard.ru> | 2015-09-30 09:19:33 +0300 |
---|---|---|
committer | Max Kamashev <kamashev@gollard.ru> | 2015-09-30 09:19:33 +0300 |
commit | cabcdc9d9e58d279ac6a5992ae5202568ed4d24e (patch) | |
tree | eebdc4ec16eb7dc2ed0edd953321fa3e02869f34 /app/Template/config | |
parent | 930406bf70e42413a83114b9530b3f63ccf9419f (diff) | |
parent | 421e8751ebca5b566ecbd8d08e9d56b93ce81ffa (diff) |
Merge branch 'master' of https://github.com/fguillot/kanboard into 1245_bug_with_subtask_timer
Diffstat (limited to 'app/Template/config')
-rw-r--r-- | app/Template/config/plugins.php | 30 | ||||
-rw-r--r-- | app/Template/config/sidebar.php | 3 |
2 files changed, 33 insertions, 0 deletions
diff --git a/app/Template/config/plugins.php b/app/Template/config/plugins.php new file mode 100644 index 00000000..fea48d58 --- /dev/null +++ b/app/Template/config/plugins.php @@ -0,0 +1,30 @@ +<div class="page-header"> + <h2><?= t('Plugins') ?></h2> +</div> + +<?php if (empty($plugins)): ?> + <p class="alert"><?= t('There is no plugin loaded.') ?></p> +<?php else: ?> + <table class="table-stripped"> + <tr> + <th class="column-20"><?= t('Name') ?></th> + <th class="column-20"><?= t('Author') ?></th> + <th class="column-10"><?= t('Version') ?></th> + <th><?= t('Description') ?></th> + </tr> + + <?php foreach($plugins as $plugin): ?> + <tr> + <td> + <?php if ($plugin->getPluginHomepage()): ?> + <a href="<?= $plugin->getPluginHomepage() ?>" target="_blank" rel="noreferrer"><?= $this->e($plugin->getPluginName()) ?></a> + <?php else: ?> + <?= $this->e($plugin->getPluginName()) ?> + <?php endif ?> + </td> + <td><?= $this->e($plugin->getPluginAuthor()) ?></td> + <td><?= $this->e($plugin->getPluginVersion()) ?></td> + <td><?= $this->e($plugin->getPluginDescription()) ?></td> + </tr> + <?php endforeach ?> +<?php endif ?>
\ No newline at end of file diff --git a/app/Template/config/sidebar.php b/app/Template/config/sidebar.php index ed4f01e7..4195cde1 100644 --- a/app/Template/config/sidebar.php +++ b/app/Template/config/sidebar.php @@ -4,6 +4,9 @@ <li <?= $this->app->getRouterAction() === 'index' ? 'class="active"' : '' ?>> <?= $this->url->link(t('About'), 'config', 'index') ?> </li> + <li <?= $this->app->getRouterAction() === 'plugins' ? 'class="active"' : '' ?>> + <?= $this->url->link(t('Plugins'), 'config', 'plugins') ?> + </li> <li <?= $this->app->getRouterAction() === 'application' ? 'class="active"' : '' ?>> <?= $this->url->link(t('Application settings'), 'config', 'application') ?> </li> |