summaryrefslogtreecommitdiff
path: root/app/Template/plugin/show.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-18 22:07:49 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-18 22:07:49 -0400
commit49f43090b214c4346a114922696b7d9d96d2c02e (patch)
tree418c2f2322cf59dc0a9bf0c65fe0d2c1030af6c3 /app/Template/plugin/show.php
parentbfd59d9e544028a1ea041806fd60e112f3a90167 (diff)
Added plugin controller (WIP)
Diffstat (limited to 'app/Template/plugin/show.php')
-rw-r--r--app/Template/plugin/show.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/Template/plugin/show.php b/app/Template/plugin/show.php
new file mode 100644
index 00000000..8358fb2a
--- /dev/null
+++ b/app/Template/plugin/show.php
@@ -0,0 +1,31 @@
+<div class="page-header">
+ <h2><?= t('Installed 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->text->e($plugin->getPluginName()) ?></a>
+ <?php else: ?>
+ <?= $this->text->e($plugin->getPluginName()) ?>
+ <?php endif ?>
+ </td>
+ <td><?= $this->text->e($plugin->getPluginAuthor()) ?></td>
+ <td><?= $this->text->e($plugin->getPluginVersion()) ?></td>
+ <td><?= $this->text->e($plugin->getPluginDescription()) ?></td>
+ </tr>
+ <?php endforeach ?>
+ </table>
+<?php endif ?>