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
|
@ -152,9 +152,9 @@ class page_managedocs_list implements renderable, templatable {
|
|||
$version->statustext = get_string('status' . $status, 'tool_policy');
|
||||
|
||||
if ($status == policy_version::STATUS_ACTIVE) {
|
||||
$version->statustext = html_writer::span($version->statustext, 'badge badge-success');
|
||||
$version->statustext = html_writer::span($version->statustext, 'badge bg-success text-white');
|
||||
} else if ($status == policy_version::STATUS_DRAFT) {
|
||||
$version->statustext = html_writer::span($version->statustext, 'badge badge-warning');
|
||||
$version->statustext = html_writer::span($version->statustext, 'badge bg-warning text-dark');
|
||||
} else {
|
||||
$version->statustext = html_writer::span($version->statustext, 'label');
|
||||
}
|
||||
|
|
|
@ -110,8 +110,8 @@
|
|||
</td>
|
||||
<td>
|
||||
<a href="{{viewurl}}">{{{revision}}}</a>
|
||||
{{#iscurrent}}<span class="badge badge-success">{{#str}} status1, tool_policy {{/str}}</span>{{/iscurrent}}
|
||||
{{#isoptional}}<span class="badge badge-info">{{#str}} policydocoptionalyes, tool_policy {{/str}}</span>{{/isoptional}}
|
||||
{{#iscurrent}}<span class="badge bg-success text-white">{{#str}} status1, tool_policy {{/str}}</span>{{/iscurrent}}
|
||||
{{#isoptional}}<span class="badge bg-info text-white">{{#str}} policydocoptionalyes, tool_policy {{/str}}</span>{{/isoptional}}
|
||||
</td>
|
||||
<td>
|
||||
{{>tool_policy/user_agreement}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue