summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/config/modules.phtml
blob: b13b37841284e348aecdfbfe58440484c5d83964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php if (! $this->compact): ?>
<div class="controls">
    <?= $this->tabs ?>
    <?= $this->paginator ?>
</div>
<?php endif ?>
<div class="content">
    <table class="table-row-selectable common-table" data-base-target="_next">
    <thead>
    <tr>
        <th><?= $this->translate('Module') ?></th>
    </tr>
    </thead>
    <tbody>
    <?php foreach ($modules as $module): ?>
        <tr>
            <td>
                <?php if (! $module->installed) {
                    $this->icon('flash', sprintf($this->translate('Module %s is dangling'), $module->name));
                } elseif ($module->enabled && $module->loaded) {
                    echo $this->icon('thumbs-up', sprintf($this->translate('Module %s is enabled'), $module->name));
                } elseif (! $module->enabled) {
                    echo $this->icon('block', sprintf($this->translate('Module %s is disabled'), $module->name));
                } else { // ! $module->loaded
                    echo $this->icon('block', sprintf($this->translate('Module %s has failed to load'), $module->name));
                }

                echo $this->qlink(
                    $module->name,
                    'config/module',
                    array('name' => $module->name),
                    array(
                        'class' => 'rowaction',
                        'title' => sprintf($this->translate('Show the overview of the %s module'), $module->name)
                    )
                ); ?>
            </td>
        </tr>
    <?php endforeach ?>
    </tbody>
    </table>
</div>