From eecb7dc093994425812d17509e0bac1ecca9e6f9 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Thu, 18 Apr 2019 13:29:28 +0800 Subject: [PATCH] MDL-65382 admin: Fix appearance of status labels --- admin/renderer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/renderer.php b/admin/renderer.php index 3bc74ec8963..922617ad278 100644 --- a/admin/renderer.php +++ b/admin/renderer.php @@ -1062,7 +1062,7 @@ class core_admin_renderer extends plugin_renderer_base { if ($isstandard = $plugin->is_standard()) { $row->attributes['class'] .= ' standard'; - $sourcelabel = html_writer::span(get_string('sourcestd', 'core_plugin'), 'sourcetext label'); + $sourcelabel = html_writer::span(get_string('sourcestd', 'core_plugin'), 'sourcetext badge badge-secondary'); } else { $row->attributes['class'] .= ' extension'; $sourcelabel = html_writer::span(get_string('sourceext', 'core_plugin'), 'sourcetext badge badge-info'); @@ -1074,7 +1074,7 @@ class core_admin_renderer extends plugin_renderer_base { $statuscode = $plugin->get_status(); $row->attributes['class'] .= ' status-' . $statuscode; - $statusclass = 'statustext label '; + $statusclass = 'statustext badge '; switch ($statuscode) { case core_plugin_manager::PLUGIN_STATUS_NEW: $statusclass .= $dependenciesok ? 'badge-success' : 'badge-warning'; @@ -2025,7 +2025,7 @@ class core_admin_renderer extends plugin_renderer_base { $messagetype = 'ok'; $statusclass = 'badge-success'; } - $status = html_writer::span($status, 'label ' . $statusclass); + $status = html_writer::span($status, 'badge ' . $statusclass); // Here we'll store all the feedback found $feedbacktext = ''; // Append the feedback if there is some -- 2.43.0