mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
MDL-80259 theme_boost: Refactor badge helper classes for Bootstrap 5
This commit is contained in:
parent
810554ee83
commit
a198884333
93 changed files with 218 additions and 209 deletions
|
@ -302,10 +302,10 @@ class helper {
|
|||
string $statusaction = ''): array {
|
||||
|
||||
$statusclasses = array(
|
||||
TEXTFILTER_DISABLED => 'badge badge-danger',
|
||||
TEXTFILTER_OFF => 'badge badge-warning',
|
||||
0 => 'badge badge-danger',
|
||||
TEXTFILTER_ON => 'badge badge-success',
|
||||
TEXTFILTER_DISABLED => 'badge bg-danger text-white',
|
||||
TEXTFILTER_OFF => 'badge bg-warning text-dark',
|
||||
0 => 'badge bg-danger text-white',
|
||||
TEXTFILTER_ON => 'badge bg-success text-white',
|
||||
);
|
||||
|
||||
$statuschoices = array(
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"tool_description": "h5ptasks_description",
|
||||
"link": "https://example.com/admin/tool/task/scheduledtasks.php",
|
||||
"status": "On",
|
||||
"status_class": "bade badge-success",
|
||||
"status_class": "bade bg-success text-white",
|
||||
"status_action": "<a href=\"admin/tool/task/schedule_task.php?task=core_task_h5p_get_content_types_task\">Run now</a>"
|
||||
},
|
||||
{
|
||||
|
@ -33,7 +33,7 @@
|
|||
"tool_description": "h5ptasks_description",
|
||||
"link": "https://example.com/admin/filters.php",
|
||||
"status": "Off",
|
||||
"status_class": "bade badge-danger"
|
||||
"status_class": "bade bg-danger text-white"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue