2013-06-20 14:06:02 +02:00
|
|
|
<?php
|
2013-08-12 15:58:26 +02:00
|
|
|
use Icinga\Web\Url;
|
|
|
|
|
2013-06-20 14:06:02 +02:00
|
|
|
$this->modules->limit(10);
|
|
|
|
$modules = $this->modules->paginate();
|
|
|
|
|
|
|
|
?>
|
2013-08-06 18:00:33 +02:00
|
|
|
<?= $this->tabs->render($this); ?>
|
2013-08-21 16:12:06 +02:00
|
|
|
|
2013-06-20 14:06:02 +02:00
|
|
|
<h3>Installed Modules</h3>
|
2013-08-27 14:37:22 +02:00
|
|
|
|
2013-11-20 19:10:38 +01:00
|
|
|
<?php if (isset($this->messageBox)): ?>
|
|
|
|
<?= $this->messageBox->render() ?>
|
|
|
|
<?php endif ?>
|
2013-08-27 14:37:22 +02:00
|
|
|
|
2013-06-20 14:06:02 +02:00
|
|
|
<?= $this->paginationControl($modules, null, null, array(
|
|
|
|
'preserve' => $this->preserve
|
2013-08-21 16:12:06 +02:00
|
|
|
));
|
|
|
|
?>
|
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
|
|
|
<? foreach ($modules as $module): ?>
|
2013-08-12 15:58:26 +02:00
|
|
|
<?php
|
|
|
|
$enableUrl = Url::fromPath('config/moduleenable/',array('name' => $module->name))->getAbsoluteUrl();
|
|
|
|
$disableUrl = Url::fromPath('config/moduledisable/',array('name' => $module->name))->getAbsoluteUrl();
|
|
|
|
?>
|
2013-08-21 16:12:06 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<? if ($module->enabled): ?>
|
2013-10-23 12:25:51 +02:00
|
|
|
<i class="icinga-icon-success"></i>
|
2013-10-17 19:48:46 +02:00
|
|
|
<a href="<?= $disableUrl ?>" data-icinga-target="main"><?= $this->escape($module->name); ?></a>
|
2013-08-21 16:12:06 +02:00
|
|
|
<? else: ?>
|
2013-10-23 12:25:51 +02:00
|
|
|
<i class="icinga-icon-remove"></i>
|
2013-10-17 19:48:46 +02:00
|
|
|
<a href="<?= $enableUrl ?>" data-icinga-target="main"><?= $this->escape($module->name); ?></a>
|
2013-08-21 16:12:06 +02:00
|
|
|
<? endif ?>
|
|
|
|
(<?=
|
|
|
|
$module->enabled ? ($module->loaded ? 'enabled' : 'failed') : 'disabled' ?>)
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<? endforeach ?>
|
|
|
|
</tbody>
|
2013-06-20 14:06:02 +02:00
|
|
|
</table>
|