mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 11:56:40 +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
|
@ -52,10 +52,10 @@ foreach ($accounts as $account) {
|
|||
}
|
||||
$name = $account->get_formatted_name();
|
||||
if (!$account->is_available()) {
|
||||
$name .= ' ' . html_writer::span(get_string('accountnotavailable', 'payment'), 'badge badge-warning');
|
||||
$name .= ' ' . html_writer::span(get_string('accountnotavailable', 'payment'), 'badge bg-warning text-dark');
|
||||
}
|
||||
if ($account->get('archived')) {
|
||||
$name .= ' ' . html_writer::span(get_string('accountarchived', 'payment'), 'badge badge-secondary');
|
||||
$name .= ' ' . html_writer::span(get_string('accountarchived', 'payment'), 'badge bg-secondary text-dark');
|
||||
}
|
||||
|
||||
$menu = new action_menu();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue