MDL-64506 templates: Move BS2 labels to BS4 badges

This commit is contained in:
Mathew May
2019-04-03 19:34:20 +08:00
parent 29551c4b1a
commit 3f2c68f119
26 changed files with 75 additions and 200 deletions
+21 -21
View File
@@ -1066,7 +1066,7 @@ class core_admin_renderer extends plugin_renderer_base {
$sourcelabel = html_writer::span(get_string('sourcestd', 'core_plugin'), 'sourcetext label');
} else {
$row->attributes['class'] .= ' extension';
$sourcelabel = html_writer::span(get_string('sourceext', 'core_plugin'), 'sourcetext label label-info');
$sourcelabel = html_writer::span(get_string('sourceext', 'core_plugin'), 'sourcetext badge badge-info');
}
$coredependency = $plugin->is_core_dependency_satisfied($version);
@@ -1078,19 +1078,19 @@ class core_admin_renderer extends plugin_renderer_base {
$statusclass = 'statustext label ';
switch ($statuscode) {
case core_plugin_manager::PLUGIN_STATUS_NEW:
$statusclass .= $dependenciesok ? 'label-success' : 'label-warning';
$statusclass .= $dependenciesok ? 'badge-success' : 'badge-warning';
break;
case core_plugin_manager::PLUGIN_STATUS_UPGRADE:
$statusclass .= $dependenciesok ? 'label-info' : 'label-warning';
$statusclass .= $dependenciesok ? 'badge-info' : 'badge-warning';
break;
case core_plugin_manager::PLUGIN_STATUS_MISSING:
case core_plugin_manager::PLUGIN_STATUS_DOWNGRADE:
case core_plugin_manager::PLUGIN_STATUS_DELETE:
$statusclass .= 'label-important';
$statusclass .= 'badge-danger';
break;
case core_plugin_manager::PLUGIN_STATUS_NODB:
case core_plugin_manager::PLUGIN_STATUS_UPTODATE:
$statusclass .= $dependenciesok ? '' : 'label-warning';
$statusclass .= $dependenciesok ? '' : 'badge-warning';
break;
}
$status = html_writer::span(get_string('status_' . $statuscode, 'core_plugin'), $statusclass);
@@ -1363,7 +1363,7 @@ class core_admin_renderer extends plugin_renderer_base {
$supportedmoodles = array();
foreach ($plugin->version->supportedmoodles as $moodle) {
if ($CFG->branch == str_replace('.', '', $moodle->release)) {
$supportedmoodles[] = html_writer::span($moodle->release, 'label label-success');
$supportedmoodles[] = html_writer::span($moodle->release, 'badge badge-success');
} else {
$supportedmoodles[] = html_writer::span($moodle->release, 'label');
}
@@ -1468,7 +1468,7 @@ class core_admin_renderer extends plugin_renderer_base {
$label = '';
} else {
$class = 'requires-failed';
$label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'label label-important');
$label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'badge badge-danger');
}
$requires[] = html_writer::tag('li',
html_writer::span(get_string('moodleversion', 'core_plugin', $plugin->versionrequires), 'dep dep-core').
@@ -1483,8 +1483,8 @@ class core_admin_renderer extends plugin_renderer_base {
} else if ($reqinfo->status == $pluginman::REQUIREMENT_STATUS_MISSING) {
if ($reqinfo->availability == $pluginman::REQUIREMENT_AVAILABLE) {
$label = html_writer::span(get_string('dependencymissing', 'core_plugin'), 'label label-warning');
$label .= ' '.html_writer::span(get_string('dependencyavailable', 'core_plugin'), 'label label-warning');
$label = html_writer::span(get_string('dependencymissing', 'core_plugin'), 'badge badge-warning');
$label .= ' '.html_writer::span(get_string('dependencyavailable', 'core_plugin'), 'badge badge-warning');
$class = 'requires-failed requires-missing requires-available';
$actions[] = html_writer::link(
new moodle_url('https://moodle.org/plugins/view.php', array('plugin' => $reqname)),
@@ -1492,24 +1492,24 @@ class core_admin_renderer extends plugin_renderer_base {
);
} else {
$label = html_writer::span(get_string('dependencymissing', 'core_plugin'), 'label label-important');
$label = html_writer::span(get_string('dependencymissing', 'core_plugin'), 'badge badge-danger');
$label .= ' '.html_writer::span(get_string('dependencyunavailable', 'core_plugin'),
'label label-important');
'badge badge-danger');
$class = 'requires-failed requires-missing requires-unavailable';
}
$displayuploadlink = true;
} else if ($reqinfo->status == $pluginman::REQUIREMENT_STATUS_OUTDATED) {
if ($reqinfo->availability == $pluginman::REQUIREMENT_AVAILABLE) {
$label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'label label-warning');
$label .= ' '.html_writer::span(get_string('dependencyavailable', 'core_plugin'), 'label label-warning');
$label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'badge badge-warning');
$label .= ' '.html_writer::span(get_string('dependencyavailable', 'core_plugin'), 'badge badge-warning');
$class = 'requires-failed requires-outdated requires-available';
$displayupdateslink = true;
} else {
$label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'label label-important');
$label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'badge badge-danger');
$label .= ' '.html_writer::span(get_string('dependencyunavailable', 'core_plugin'),
'label label-important');
'badge badge-danger');
$class = 'requires-failed requires-outdated requires-unavailable';
}
$displayuploadlink = true;
@@ -1773,13 +1773,13 @@ class core_admin_renderer extends plugin_renderer_base {
$source = '';
} else {
$row->attributes['class'] .= ' extension';
$source = html_writer::div(get_string('sourceext', 'core_plugin'), 'source label label-info');
$source = html_writer::div(get_string('sourceext', 'core_plugin'), 'source badge badge-info');
}
if ($status === core_plugin_manager::PLUGIN_STATUS_MISSING) {
$msg = html_writer::div(get_string('status_missing', 'core_plugin'), 'statusmsg label label-important');
$msg = html_writer::div(get_string('status_missing', 'core_plugin'), 'statusmsg badge badge-danger');
} else if ($status === core_plugin_manager::PLUGIN_STATUS_NEW) {
$msg = html_writer::div(get_string('status_new', 'core_plugin'), 'statusmsg label label-success');
$msg = html_writer::div(get_string('status_new', 'core_plugin'), 'statusmsg badge badge-success');
} else {
$msg = '';
}
@@ -2018,13 +2018,13 @@ class core_admin_renderer extends plugin_renderer_base {
// Format error or warning line
if ($errorline) {
$messagetype = 'error';
$statusclass = 'label-important';
$statusclass = 'badge-danger';
} else if ($warningline) {
$messagetype = 'warn';
$statusclass = 'label-warning';
$statusclass = 'badge-warning';
} else {
$messagetype = 'ok';
$statusclass = 'label-success';
$statusclass = 'badge-success';
}
$status = html_writer::span($status, 'label ' . $statusclass);
// Here we'll store all the feedback found
@@ -160,36 +160,36 @@ class data_request_exporter extends persistent_exporter {
switch ($this->persistent->get('status')) {
case api::DATAREQUEST_STATUS_PENDING:
$values['statuslabelclass'] = 'label-info';
$values['statuslabelclass'] = 'badge-info';
// Request can be manually completed for general enquiry requests.
$values['canmarkcomplete'] = $requesttype == api::DATAREQUEST_TYPE_OTHERS;
break;
case api::DATAREQUEST_STATUS_AWAITING_APPROVAL:
$values['statuslabelclass'] = 'label-info';
$values['statuslabelclass'] = 'badge-info';
// DPO can review the request once it's ready.
$values['canreview'] = true;
// Whether the DPO can approve or deny the request.
$values['approvedeny'] = in_array($requesttype, [api::DATAREQUEST_TYPE_EXPORT, api::DATAREQUEST_TYPE_DELETE]);
break;
case api::DATAREQUEST_STATUS_APPROVED:
$values['statuslabelclass'] = 'label-info';
$values['statuslabelclass'] = 'badge-info';
break;
case api::DATAREQUEST_STATUS_PROCESSING:
$values['statuslabelclass'] = 'label-info';
$values['statuslabelclass'] = 'badge-info';
break;
case api::DATAREQUEST_STATUS_COMPLETE:
case api::DATAREQUEST_STATUS_DOWNLOAD_READY:
case api::DATAREQUEST_STATUS_DELETED:
$values['statuslabelclass'] = 'label-success';
$values['statuslabelclass'] = 'badge-success';
break;
case api::DATAREQUEST_STATUS_CANCELLED:
$values['statuslabelclass'] = 'label-warning';
$values['statuslabelclass'] = 'badge-warning';
break;
case api::DATAREQUEST_STATUS_REJECTED:
$values['statuslabelclass'] = 'label-important';
$values['statuslabelclass'] = 'badge-danger';
break;
case api::DATAREQUEST_STATUS_EXPIRED:
$values['statuslabelclass'] = 'label-default';
$values['statuslabelclass'] = 'badge-secondary';
break;
}
@@ -106,12 +106,12 @@ class my_data_requests_page implements renderable, templatable {
$cancancel = true;
switch ($status) {
case api::DATAREQUEST_STATUS_COMPLETE:
$item->statuslabelclass = 'label-success';
$item->statuslabelclass = 'badge-success';
$item->statuslabel = get_string('statuscomplete', 'tool_dataprivacy');
$cancancel = false;
break;
case api::DATAREQUEST_STATUS_DOWNLOAD_READY:
$item->statuslabelclass = 'label-success';
$item->statuslabelclass = 'badge-success';
$item->statuslabel = get_string('statusready', 'tool_dataprivacy');
$cancancel = false;
$candownload = true;
@@ -122,12 +122,12 @@ class my_data_requests_page implements renderable, templatable {
}
break;
case api::DATAREQUEST_STATUS_DELETED:
$item->statuslabelclass = 'label-success';
$item->statuslabelclass = 'badge-success';
$item->statuslabel = get_string('statusdeleted', 'tool_dataprivacy');
$cancancel = false;
break;
case api::DATAREQUEST_STATUS_EXPIRED:
$item->statuslabelclass = 'label-default';
$item->statuslabelclass = 'badge-secondary';
$item->statuslabel = get_string('statusexpired', 'tool_dataprivacy');
$item->statuslabeltitle = get_string('downloadexpireduser', 'tool_dataprivacy');
$cancancel = false;
@@ -35,7 +35,7 @@
"id": 1,
"typename" : "Data export",
"comments": "I would like to download all of my daughter's personal data",
"statuslabelclass": "label-default",
"statuslabelclass": "badge-secondary",
"statuslabel": "Pending",
"timecreated" : 1517902087,
"requestedbyuser" : {
@@ -47,7 +47,7 @@
"id": 2,
"typename" : "Data export",
"comments": "Give me all of the information you have about me, or else...",
"statuslabelclass": "label-warning",
"statuslabelclass": "badge-warning",
"statuslabel": "Awaiting completion",
"timecreated" : 1517902087,
"requestedbyuser" : {
@@ -59,7 +59,7 @@
"id": 3,
"typename" : "Data deletion",
"comments": "Please delete all of my son's personal data.",
"statuslabelclass": "label-success",
"statuslabelclass": "badge-success",
"statuslabel": "Deleted",
"timecreated" : 1517902087,
"requestedbyuser" : {
@@ -83,7 +83,7 @@
"id": 5,
"typename" : "Data export",
"comments": "Please let me download my data",
"statuslabelclass": "label-info",
"statuslabelclass": "badge-info",
"statuslabel": "Processing",
"timecreated" : 1517902087,
"requestedbyuser" : {
@@ -140,7 +140,7 @@
<td>{{#userdate}} {{timecreated}}, {{#str}} strftimedatetime {{/str}} {{/userdate}}</td>
<td><a href="{{requestedbyuser.profileurl}}" title="{{#str}}viewprofile{{/str}}">{{requestedbyuser.fullname}}</a></td>
<td>
<span class="label {{statuslabelclass}}" title="{{statuslabeltitle}}">{{statuslabel}}</span>
<span class="badge {{statuslabelclass}}" title="{{statuslabeltitle}}">{{statuslabel}}</span>
</td>
<td>{{comments}}</td>
<td>
@@ -49,7 +49,7 @@
"profileurl": "#"
},
"statuslabel": "Pending",
"statuslabelclass": "label-default",
"statuslabelclass": "badge-secondary",
"messagehtml": "<p>Hello,</p><p>I would like to download all of my personal data.</p><p>Thanks!</p>"
}
}}
@@ -71,7 +71,7 @@
</span>
<span class="pull-left m-r-1">
<strong>{{#str}}statusdetail, tool_dataprivacy{{/str}}</strong>
<span class="label {{statuslabelclass}}">{{statuslabel}}</span>
<span class="badge {{statuslabelclass}}">{{statuslabel}}</span>
</span>
<span class="pull-left m-r-1">
<strong>{{#str}}requestbydetail, tool_dataprivacy{{/str}}</strong>
@@ -82,7 +82,7 @@
{{/comppath}}
{{#usercompetencycourse}}
{{#grade}}
<span class="label {{^proficiency}}label-important{{/proficiency}}">{{gradename}}</span>
<span class="badge {{^proficiency}}badge-danger{{/proficiency}}">{{gradename}}</span>
{{/grade}}
{{/usercompetencycourse}}
{{#canmanagecoursecompetencies}}
@@ -57,7 +57,7 @@
{{/actionuser}}
<strong><time datetime="{{userdate}}">{{userdate}}</time></strong>
{{#grade}}
<p><span class="tag tag-info">{{gradename}}</span></p>
<p><span class="badge badge-info">{{gradename}}</span></p>
{{/grade}}
<p>{{description}}</p>
{{#note}}
+2 -2
View File
@@ -57,10 +57,10 @@
</td>
<td>
{{#isbasedontemplate}}
<span class="label label-info">{{#str}}yes{{/str}}</span>
<span class="badge badge-info">{{#str}}yes{{/str}}</span>
{{/isbasedontemplate}}
{{^isbasedontemplate}}
<span class="label">{{#str}}no{{/str}}</span>
<span class="badge">{{#str}}no{{/str}}</span>
{{/isbasedontemplate}}
</td>
<td>{{statusname}}</td>
@@ -60,7 +60,7 @@
</ul>
{{/hascourses}}
{{^hascourses}}
<span class="label label-info">{{#str}}nolinkedcourses, tool_lp{{/str}}</span>
<span class="badge badge-info">{{#str}}nolinkedcourses, tool_lp{{/str}}</span>
{{/hascourses}}
</div>
</div>
@@ -57,7 +57,7 @@
</dd>
<dt>{{#str}}proficient, tool_lp{{/str}}</dt>
<dd>
<span class="label{{^proficiency}} label-important{{/proficiency}} pull-left">
<span class="badge{{^proficiency}} badge-danger{{/proficiency}} pull-left">
{{proficiencyname}}
</span>
</dd>
@@ -81,7 +81,7 @@
{{#usercompetencycourse}}
<dt>{{#str}}proficient, tool_lp{{/str}}</dt>
<dd>
<span class="label{{^proficiency}} label-important{{/proficiency}} pull-left">
<span class="badge{{^proficiency}} badge-danger{{/proficiency}} pull-left">
{{proficiencyname}}
</span>
</dd>
@@ -68,7 +68,7 @@
</dd>
<dt>{{#str}}proficient, tool_lp{{/str}}</dt>
<dd>
<span class="label{{^proficiency}} label-important{{/proficiency}} pull-left">
<span class="badge{{^proficiency}} badge-danger{{/proficiency}} pull-left">
{{proficiencyname}}
</span>
</dd>
@@ -101,7 +101,7 @@
<dd>{{gradename}} - {{#str}}plancompleted, tool_lp{{/str}}</dd>
<dt>{{#str}}proficient, tool_lp{{/str}}</dt>
<dd>
<span class="label{{^proficiency}} label-important{{/proficiency}} pull-left">
<span class="badge{{^proficiency}} badge-danger{{/proficiency}} pull-left">
{{proficiencyname}}
</span>
</dd>
@@ -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, 'label label-success');
$version->statustext = html_writer::span($version->statustext, 'badge badge-success');
} else if ($status == policy_version::STATUS_DRAFT) {
$version->statustext = html_writer::span($version->statustext, 'label label-warning');
$version->statustext = html_writer::span($version->statustext, 'badge badge-warning');
} else {
$version->statustext = html_writer::span($version->statustext, 'label');
}
@@ -110,8 +110,8 @@
</td>
<td>
<a href="{{viewurl}}">{{{revision}}}</a>
{{#iscurrent}}<span class="label label-success">{{#str}} status1, tool_policy {{/str}}</span>{{/iscurrent}}
{{#isoptional}}<span class="label label-info">{{#str}} policydocoptionalyes, tool_policy {{/str}}</span>{{/isoptional}}
{{#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}}
</td>
<td>
{{>tool_policy/user_agreement}}
+2 -2
View File
@@ -52,10 +52,10 @@
{{#text}}
<div class="availabilityinfo {{classes}}">
{{^isrestricted}}
<span class="tag tag-info">{{{text}}}</span>
<span class="badge badge-info">{{{text}}}</span>
{{/isrestricted}}
{{#isrestricted}}
<span class="tag tag-info">{{#str}}restricted, core{{/str}}</span> {{{text}}}
<span class="badge badge-info">{{#str}}restricted, core{{/str}}</span> {{{text}}}
{{/isrestricted}}
</div>
{{/text}}
@@ -40,7 +40,7 @@
<div class="form-autocomplete-selection w-100 {{#multiple}}form-autocomplete-multiple{{/multiple}}" id="{{selectionId}}" role="list" aria-atomic="true" {{#multiple}}tabindex="0" aria-multiselectable="true"{{/multiple}}>
<span class="accesshide">{{#str}}selecteditems, form{{/str}}</span>
{{#items}}
<span role="listitem" data-value="{{value}}" aria-selected="true" class="tag tag-info mb-3 mr-1" style="font-size: 100%">
<span role="listitem" data-value="{{value}}" aria-selected="true" class="badge badge-info mb-3 mr-1" style="font-size: 100%">
{{#multiple}}<span aria-hidden="true">× </span>{{/multiple}}{{{label}}}
</span>
{{/items}}
@@ -69,7 +69,7 @@
</p>
</div>
<div class="unread-count-container">
<span data-region="unread-count" class="badge badge-important">{{unreadcount}}</span>
<span data-region="unread-count" class="badge badge-danger">{{unreadcount}}</span>
</div>
</div>
</a>
+3 -3
View File
@@ -409,13 +409,13 @@ switch ($mode) {
// Different colors for all the states of an essay (graded, if sent, not graded)
if (!$essayinfo->graded) {
$class = "label label-warning";
$class = "badge badge-warning";
$status = get_string('notgraded', 'lesson');
} elseif (!$essayinfo->sent) {
$class = "label label-success";
$class = "badge badge-success";
$status = get_string('graded', 'lesson');
} else {
$class = "label label-success";
$class = "badge badge-success";
$status = get_string('sent', 'lesson');
}
$attributes = array('tabindex' => 0);
+4 -4
View File
@@ -55,10 +55,10 @@
<div class="tool-card-header">
<div class="tool-card-subheader">
<div class="tag
{{#state.pending}}tag-info{{/state.pending}}
{{#state.configured}}tag-success{{/state.configured}}
{{#state.rejected}}tag-important{{/state.rejected}}
{{#state.unknown}}tag-warning{{/state.unknown}}">
{{#state.pending}}badge-info{{/state.pending}}
{{#state.configured}}badge-success{{/state.configured}}
{{#state.rejected}}badge-danger{{/state.rejected}}
{{#state.unknown}}badge-warning{{/state.unknown}}">
{{state.text}}
</div>
<div class="tool-card-actions pull-xs-right">
+4 -4
View File
@@ -55,10 +55,10 @@
<div class="tool-card-header">
<div class="tool-card-subheader">
<div class="tag
{{#state.pending}}tag-info{{/state.pending}}
{{#state.configured}}tag-success{{/state.configured}}
{{#state.rejected}}tag-important{{/state.rejected}}
{{#state.unknown}}tag-warning{{/state.unknown}}">
{{#state.pending}}badge-info{{/state.pending}}
{{#state.configured}}badge-success{{/state.configured}}
{{#state.rejected}}badge-danger{{/state.rejected}}
{{#state.unknown}}badge-warning{{/state.unknown}}">
{{state.text}}
</div>
<div class="tool-card-actions pull-xs-right">
+1 -1
View File
@@ -52,7 +52,7 @@
<ul class="inline-list">
{{#tags}}
<li {{#overlimit}}class="overlimit"{{/overlimit}}>
<a href="{{viewurl}}" class="label label-info {{#isstandard}}standardtag{{/isstandard}}" >
<a href="{{viewurl}}" class="badge badge-info {{#isstandard}}standardtag{{/isstandard}}" >
{{#flag}}
<span class="flagged-tag">{{name}}</span></a>
{{/flag}}
-24
View File
@@ -18,8 +18,6 @@
@extend .btn-secondary;
}
// Labels and badges.
.label {
@extend .tag;
@include tag-variant($tag-default-bg);
@@ -41,28 +39,6 @@
@include tag-variant($tag-danger-bg);
}
.badge {
@extend .tag;
@include tag-variant($tag-default-bg);
@include border-radius($font-size-root / 2);
}
.badge-success {
@include tag-variant($tag-success-bg);
}
.badge-info {
@include tag-variant($tag-info-bg);
}
.badge-warning {
@include tag-variant($tag-warning-bg);
}
.badge-important {
@include tag-variant($tag-danger-bg);
}
// Floats.
.pull-left {
@include pull-left();
+2 -52
View File
@@ -8520,7 +8520,7 @@ a.dimmed_text:visited,
/* stylelint-disable function-url-scheme-blacklist */
/* stylelint-enable function-url-scheme-blacklist */
.tag, .statusok, .statuswarning, .statusserious,
.statuscritical, .que .correctness, .label, .badge {
.statuscritical, .que .correctness {
display: inline-block;
padding: 0.25rem 0.4em;
font-size: 75%;
@@ -8531,7 +8531,7 @@ a.dimmed_text:visited,
white-space: nowrap;
vertical-align: baseline; }
.tag:empty, .statusok:empty, .statuswarning:empty, .statusserious:empty,
.statuscritical:empty, .que .correctness:empty, .label:empty, .badge:empty {
.statuscritical:empty, .que .correctness:empty {
display: none; }
.form-control-success,
@@ -16606,56 +16606,6 @@ span[data-flexitour="container"][x-placement="right"], span[data-flexitour="cont
margin-left: -15px;
width: 275px; }
.label {
background-color: #868e96; }
.label[href]:hover, .label[href]:focus {
background-color: #6c757d; }
.label-success {
background-color: #5cb85c; }
.label-success[href]:hover, .label-success[href]:focus {
background-color: #449d44; }
.label-info {
background-color: #5bc0de; }
.label-info[href]:hover, .label-info[href]:focus {
background-color: #31b0d5; }
.label-warning {
background-color: #ff7518; }
.label-warning[href]:hover, .label-warning[href]:focus {
background-color: #e45c00; }
.label-important {
background-color: #d9534f; }
.label-important[href]:hover, .label-important[href]:focus {
background-color: #c9302c; }
.badge {
background-color: #868e96; }
.badge[href]:hover, .badge[href]:focus {
background-color: #6c757d; }
.badge-success {
background-color: #5cb85c; }
.badge-success[href]:hover, .badge-success[href]:focus {
background-color: #449d44; }
.badge-info {
background-color: #5bc0de; }
.badge-info[href]:hover, .badge-info[href]:focus {
background-color: #31b0d5; }
.badge-warning {
background-color: #ff7518; }
.badge-warning[href]:hover, .badge-warning[href]:focus {
background-color: #e45c00; }
.badge-important {
background-color: #d9534f; }
.badge-important[href]:hover, .badge-important[href]:focus {
background-color: #c9302c; }
.pull-left {
float: left !important; }
+2 -53
View File
@@ -8753,7 +8753,7 @@ a.dimmed_text:visited,
/* stylelint-disable function-url-scheme-blacklist */
/* stylelint-enable function-url-scheme-blacklist */
.tag, .statusok, .statuswarning, .statusserious,
.statuscritical, .que .correctness, .label, .badge {
.statuscritical, .que .correctness {
display: inline-block;
padding: 0.25rem 0.4em;
font-size: 75%;
@@ -8765,7 +8765,7 @@ a.dimmed_text:visited,
vertical-align: baseline;
border-radius: 0.25rem; }
.tag:empty, .statusok:empty, .statuswarning:empty, .statusserious:empty,
.statuscritical:empty, .que .correctness:empty, .label:empty, .badge:empty {
.statuscritical:empty, .que .correctness:empty {
display: none; }
.form-control-success,
@@ -16871,57 +16871,6 @@ span[data-flexitour="container"][x-placement="right"], span[data-flexitour="cont
margin-left: -15px;
width: 275px; }
.label {
background-color: #868e96; }
.label[href]:hover, .label[href]:focus {
background-color: #6c757d; }
.label-success {
background-color: #5cb85c; }
.label-success[href]:hover, .label-success[href]:focus {
background-color: #449d44; }
.label-info {
background-color: #5bc0de; }
.label-info[href]:hover, .label-info[href]:focus {
background-color: #31b0d5; }
.label-warning {
background-color: #ff7518; }
.label-warning[href]:hover, .label-warning[href]:focus {
background-color: #e45c00; }
.label-important {
background-color: #d9534f; }
.label-important[href]:hover, .label-important[href]:focus {
background-color: #c9302c; }
.badge {
background-color: #868e96;
border-radius: 0.46875rem; }
.badge[href]:hover, .badge[href]:focus {
background-color: #6c757d; }
.badge-success {
background-color: #5cb85c; }
.badge-success[href]:hover, .badge-success[href]:focus {
background-color: #449d44; }
.badge-info {
background-color: #5bc0de; }
.badge-info[href]:hover, .badge-info[href]:focus {
background-color: #31b0d5; }
.badge-warning {
background-color: #ff7518; }
.badge-warning[href]:hover, .badge-warning[href]:focus {
background-color: #e45c00; }
.badge-important {
background-color: #d9534f; }
.badge-important[href]:hover, .badge-important[href]:focus {
background-color: #c9302c; }
.pull-left {
float: left !important; }
+1 -1
View File
@@ -35,7 +35,7 @@
"coursename": "TC 1",
"enrolinstancename": "Manual enrolment",
"status": "Active",
"statusclass": "label label-success",
"statusclass": "badge badge-success",
"timestart": "1 January 2017",
"timeend": "31 January 2018",
"timeenrolled": "31 December 2016"
+1 -1
View File
@@ -61,7 +61,7 @@
}}
<div data-fullname="{{fullname}}" data-coursename="{{coursename}}" data-enrolinstancename="{{enrolinstancename}}"
data-status="{{status}}" data-timestart="{{timestart}}" data-timeend="{{timeend}}" data-timeenrolled="{{timeenrolled}}">
<span class="label {{#active}}label-success{{/active}}{{#suspended}}label-warning{{/suspended}}{{#notcurrent}}label-default{{/notcurrent}}">{{status}}</span>
<span class="badge {{#active}}badge-success{{/active}}{{#suspended}}badge-warning{{/suspended}}{{#notcurrent}}badge-secondary{{/notcurrent}}">{{status}}</span>
<a data-action="showdetails" href="#" role="button" tabindex="0">{{!
}}{{#pix}}docs, core, {{enrolinstancename}}{{/pix}}{{!
}}</a>