Add proper titles to the module overview

refs #8458
This commit is contained in:
Johannes Meyer 2015-02-23 17:19:06 +01:00
parent fb28da8f23
commit 3605880fd1

View File

@ -11,22 +11,18 @@
<tr> <tr>
<td> <td>
<?php if ($module->enabled && $module->loaded) { <?php if ($module->enabled && $module->loaded) {
$icon = $this->icon('thumbs-up'); echo $this->icon('thumbs-up', sprintf($this->translate('Module %s is enabled'), $module->name));
$title = sprintf($this->translate('Module %s is enabled'), $module->name);
} elseif (! $module->enabled) { } elseif (! $module->enabled) {
$icon = $this->icon('thumbs-down'); echo $this->icon('thumbs-down', sprintf($this->translate('Module %s is disabled'), $module->name));
$title = sprintf($this->translate('Module %s is disabled'), $module->name);
} else { // ! $module->loaded } else { // ! $module->loaded
$icon = $this->icon('thumbs-down'); echo $this->icon('thumbs-down', sprintf($this->translate('Module %s has failed to load'), $module->name));
$title = sprintf($this->translate('Module %s has failed to load'), $module->name);
} }
echo $this->qlink( echo $this->qlink(
$icon . $this->escape($module->name), $module->name,
'config/module/', 'config/module/',
array('name' => $module->name), array('name' => $module->name),
array('title' => $title), array('title' => sprintf($this->translate('Show the overview of the %s module'), $module->name))
false
); ?> ); ?>
</td> </td>
</tr> </tr>