2014-05-26 16:38:03 +02:00
|
|
|
<div class="controls">
|
2014-06-21 02:27:27 +02:00
|
|
|
<?= $this->tabs ?>
|
2014-09-29 15:20:19 +02:00
|
|
|
<h1><?= $this->translate('Installed Modules') ?></h1>
|
2014-06-21 02:27:27 +02:00
|
|
|
<?= $this->paginationControl($modules) ?>
|
2014-05-26 16:38:03 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
<table class="action" data-base-target="_next">
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($modules as $module): ?>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2015-02-16 11:02:09 +01:00
|
|
|
<?php if ($module->enabled && $module->loaded) {
|
|
|
|
$icon = $this->icon('thumbs-up');
|
|
|
|
$title = sprintf($this->translate('Module %s is enabled'), $module->name);
|
|
|
|
} elseif (! $module->enabled) {
|
|
|
|
$icon = $this->icon('thumbs-down');
|
|
|
|
$title = sprintf($this->translate('Module %s is disabled'), $module->name);
|
|
|
|
} else { // ! $module->loaded
|
|
|
|
$icon = $this->icon('thumbs-down');
|
|
|
|
$title = sprintf($this->translate('Module %s has failed to load'), $module->name);
|
|
|
|
}
|
|
|
|
|
|
|
|
echo $this->qlink(
|
|
|
|
$icon . $this->escape($module->name),
|
|
|
|
'config/module/',
|
|
|
|
array('name' => $module->name),
|
|
|
|
array('title' => $title),
|
|
|
|
false
|
|
|
|
); ?>
|
2014-05-26 16:38:03 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2014-10-23 10:44:54 +02:00
|
|
|
<?php endforeach ?>
|
2014-05-26 16:38:03 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|