MDL-35238 Remove the hide/show icon from the Plugins overview page

This was reported in forums as an usability issue. This icon is used
across Moodle as an active link to hide or show things - not as a status
icon. People were trying to disable plugins by clicking the icon. Until
there is a full support for doing this from the Plugins overview page,
it is better to remove the icons completely.
This commit is contained in:
David Mudrák 2012-09-18 22:26:22 +02:00
parent 4df8bced23
commit 7bc759bd44

View File

@ -1065,12 +1065,10 @@ class core_admin_renderer extends plugin_renderer_base {
$availability = new html_table_cell('');
} else if ($isenabled) {
$row->attributes['class'] .= ' enabled';
$icon = $this->output->pix_icon('i/hide', get_string('pluginenabled', 'core_plugin'));
$availability = new html_table_cell($icon . ' ' . get_string('pluginenabled', 'core_plugin'));
$availability = new html_table_cell(get_string('pluginenabled', 'core_plugin'));
} else {
$row->attributes['class'] .= ' disabled';
$icon = $this->output->pix_icon('i/show', get_string('plugindisabled', 'core_plugin'));
$availability = new html_table_cell($icon . ' ' . get_string('plugindisabled', 'core_plugin'));
$availability = new html_table_cell(get_string('plugindisabled', 'core_plugin'));
}
$actions = array();