248 results - 92 files

admin/renderer.php:
  1112                      $row->attributes['class'] .= ' standard';
  1113                      $row->attributes['class'] .= ' standard';
  1114:                     $sourcelabel = html_writer::span(get_string('sourcestd', 'core_plugin'), 'sourcetext badge badge-secondary');

  1114                  } else {
  1115                      $row->attributes['class'] .= ' extension';
  1116                      $row->attributes['class'] .= ' extension';
  1117:                     $sourcelabel = html_writer::span(get_string('sourceext', 'core_plugin'), 'sourcetext badge badge-info');

  1117                  }
  1118                  }

  1129                      case core_plugin_manager::PLUGIN_STATUS_NEW:
  1130                      case core_plugin_manager::PLUGIN_STATUS_NEW:
  1131:                         $statusclass .= $dependenciesok ? 'badge-success' : 'badge-warning';

  1131                          break;
  1132                      case core_plugin_manager::PLUGIN_STATUS_UPGRADE:
  1133                      case core_plugin_manager::PLUGIN_STATUS_UPGRADE:
  1134:                         $statusclass .= $dependenciesok ? 'badge-info' : 'badge-warning';

  1134                          break;
  1135                          break;

  1137                      case core_plugin_manager::PLUGIN_STATUS_DELETE:
  1138                      case core_plugin_manager::PLUGIN_STATUS_DELETE:
  1139:                         $statusclass .= 'badge-danger';

  1139                          break;
  1140                          break;
  1141                      case core_plugin_manager::PLUGIN_STATUS_UPTODATE:
  1142                      case core_plugin_manager::PLUGIN_STATUS_UPTODATE:
  1143:                         $statusclass .= $dependenciesok ? 'badge-light' : 'badge-warning';

  1143                          break;
  1144                          break;

  1264          $out .= html_writer::div(html_writer::link(new moodle_url($this->page->url, array('showallplugins' => 0)),
  1265          $out .= html_writer::div(html_writer::link(new moodle_url($this->page->url, array('showallplugins' => 0)),
  1266:             get_string('plugincheckattention', 'core_plugin')).' '.html_writer::span($sumattention, 'badge badge-light'),

  1266              'btn btn-link mr-1');
  1267              'btn btn-link mr-1');
  1268          $out .= html_writer::div(html_writer::link(new moodle_url($this->page->url, array('showallplugins' => 1)),
  1269          $out .= html_writer::div(html_writer::link(new moodle_url($this->page->url, array('showallplugins' => 1)),
  1270:             get_string('plugincheckall', 'core_plugin')).' '.html_writer::span($sumtotal, 'badge badge-light'),

  1270              'btn btn-link mr-1');
  1271              'btn btn-link mr-1');

  1421                  if ($CFG->branch == str_replace('.', '', $moodle->release)) {
  1422                  if ($CFG->branch == str_replace('.', '', $moodle->release)) {
  1423:                     $supportedmoodles[] = html_writer::span($moodle->release, 'badge badge-success');

  1423                  } else {
  1424                  } else {
  1425:                     $supportedmoodles[] = html_writer::span($moodle->release, 'badge badge-light');

  1425                  }
  1426                  }

  1529                      $class = 'requires-failed';
  1530                      $class = 'requires-failed';
  1531:                     $label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'badge badge-danger');

  1531                  }
  1532                  }

  1558                      if ($reqinfo->availability == $pluginman::REQUIREMENT_AVAILABLE) {
  1559                      if ($reqinfo->availability == $pluginman::REQUIREMENT_AVAILABLE) {
  1560:                         $label = html_writer::span(get_string('dependencymissing', 'core_plugin'), 'badge badge-warning');
  1561:                         $label .= ' '.html_writer::span(get_string('dependencyavailable', 'core_plugin'), 'badge badge-warning');

  1561                          $class = 'requires-failed requires-missing requires-available';
  1562                          $class = 'requires-failed requires-missing requires-available';

  1567                      } else {
  1568                      } else {
  1569:                         $label = html_writer::span(get_string('dependencymissing', 'core_plugin'), 'badge badge-danger');

  1569                          $label .= ' '.html_writer::span(get_string('dependencyunavailable', 'core_plugin'),
  1570                          $label .= ' '.html_writer::span(get_string('dependencyunavailable', 'core_plugin'),
  1571:                             'badge badge-danger');

  1571                          $class = 'requires-failed requires-missing requires-unavailable';
  1572                          $class = 'requires-failed requires-missing requires-unavailable';

  1576                      if ($reqinfo->availability == $pluginman::REQUIREMENT_AVAILABLE) {
  1577                      if ($reqinfo->availability == $pluginman::REQUIREMENT_AVAILABLE) {
  1578:                         $label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'badge badge-warning');
  1579:                         $label .= ' '.html_writer::span(get_string('dependencyavailable', 'core_plugin'), 'badge badge-warning');

  1579                          $class = 'requires-failed requires-outdated requires-available';
  1580                          $class = 'requires-failed requires-outdated requires-available';

  1582                      } else {
  1583                      } else {
  1584:                         $label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'badge badge-danger');

  1584                          $label .= ' '.html_writer::span(get_string('dependencyunavailable', 'core_plugin'),
  1585                          $label .= ' '.html_writer::span(get_string('dependencyunavailable', 'core_plugin'),
  1586:                             'badge badge-danger');

  1586                          $class = 'requires-failed requires-outdated requires-unavailable';
  1587                          $class = 'requires-failed requires-outdated requires-unavailable';

  1694                  array('title' => get_string('filterupdatesonly', 'core_plugin'))
  1695                  array('title' => get_string('filterupdatesonly', 'core_plugin'))
  1696:             ).' '.html_writer::span($numupdatable, 'badge badge-info number number-updatable');

  1696          } else {
  1697          } else {

  1869                      $row->attributes['class'] .= ' extension';
  1870                      $row->attributes['class'] .= ' extension';
  1871:                     $source = html_writer::div(get_string('sourceext', 'core_plugin'), 'source badge badge-info');

  1871                  }
  1872                  }
  1873                  if ($status === core_plugin_manager::PLUGIN_STATUS_MISSING) {
  1874                  if ($status === core_plugin_manager::PLUGIN_STATUS_MISSING) {
  1875:                     $msg = html_writer::div(get_string('status_missing', 'core_plugin'), 'statusmsg badge badge-danger');

  1875                  } else if ($status === core_plugin_manager::PLUGIN_STATUS_NEW) {
  1876                  } else if ($status === core_plugin_manager::PLUGIN_STATUS_NEW) {
  1877:                     $msg = html_writer::div(get_string('status_new', 'core_plugin'), 'statusmsg badge badge-success');

  1877                  } else {
  1878                  } else {

  2114                      $messagetype = 'error';
  2115                      $messagetype = 'error';
  2116:                     $statusclass = 'badge-danger';

  2116                  } else if ($warningline) {
  2117                      $messagetype = 'warn';
  2118                      $messagetype = 'warn';
  2119:                     $statusclass = 'badge-warning';

  2119                  } else {
  2120                      $messagetype = 'ok';
  2121                      $messagetype = 'ok';
  2122:                     $statusclass = 'badge-success';
  2122                  }
  2123                  }

admin/classes/table/hook_list_table.php:
  274              }
  275              }
  276:             return $this->get_tag($tag, 'badge badge-info');
  276          }, $tags);
  277          }, $tags);

admin/tool/componentlibrary/hugo/site/layouts/_default/docs.html:
  54
  55
  56:                   <div class="badge badge-info">{{.}}</div>
  56
  57

admin/tool/dataprivacy/classes/external/data_request_exporter.php:
  165              case api::DATAREQUEST_STATUS_PREPROCESSING:
  166              case api::DATAREQUEST_STATUS_PREPROCESSING:
  167:                 $values['statuslabelclass'] = 'badge-info';

  167                  // Request can be manually completed for general enquiry requests.
  168                  // Request can be manually completed for general enquiry requests.

  170              case api::DATAREQUEST_STATUS_AWAITING_APPROVAL:
  171              case api::DATAREQUEST_STATUS_AWAITING_APPROVAL:
  172:                 $values['statuslabelclass'] = 'badge-info';

  172                  // DPO can review the request once it's ready.
  173                  // DPO can review the request once it's ready.

  181              case api::DATAREQUEST_STATUS_APPROVED:
  182              case api::DATAREQUEST_STATUS_APPROVED:
  183:                 $values['statuslabelclass'] = 'badge-info';

  183                  break;
  184              case api::DATAREQUEST_STATUS_PROCESSING:
  185              case api::DATAREQUEST_STATUS_PROCESSING:
  186:                 $values['statuslabelclass'] = 'badge-info';

  186                  break;
  187                  break;

  189              case api::DATAREQUEST_STATUS_DELETED:
  190              case api::DATAREQUEST_STATUS_DELETED:
  191:                 $values['statuslabelclass'] = 'badge-success';

  191                  break;
  192              case api::DATAREQUEST_STATUS_CANCELLED:
  193              case api::DATAREQUEST_STATUS_CANCELLED:
  194:                 $values['statuslabelclass'] = 'badge-warning';

  194                  break;
  195              case api::DATAREQUEST_STATUS_REJECTED:
  196              case api::DATAREQUEST_STATUS_REJECTED:
  197:                 $values['statuslabelclass'] = 'badge-danger';

  197                  break;
  198              case api::DATAREQUEST_STATUS_EXPIRED:
  199              case api::DATAREQUEST_STATUS_EXPIRED:
  200:                 $values['statuslabelclass'] = 'badge-secondary';
  200                  break;
  201                  break;

admin/tool/dataprivacy/classes/output/my_data_requests_page.php:
  107                  case api::DATAREQUEST_STATUS_COMPLETE:
  108                  case api::DATAREQUEST_STATUS_COMPLETE:
  109:                     $item->statuslabelclass = 'badge-success';

  109                      $item->statuslabel = get_string('statuscomplete', 'tool_dataprivacy');
  110                      $item->statuslabel = get_string('statuscomplete', 'tool_dataprivacy');

  112                  case api::DATAREQUEST_STATUS_DOWNLOAD_READY:
  113                  case api::DATAREQUEST_STATUS_DOWNLOAD_READY:
  114:                     $item->statuslabelclass = 'badge-success';

  114                      $item->statuslabel = get_string('statusready', 'tool_dataprivacy');
  115                      $item->statuslabel = get_string('statusready', 'tool_dataprivacy');

  123                  case api::DATAREQUEST_STATUS_DELETED:
  124                  case api::DATAREQUEST_STATUS_DELETED:
  125:                     $item->statuslabelclass = 'badge-success';

  125                      $item->statuslabel = get_string('statusdeleted', 'tool_dataprivacy');
  126                      $item->statuslabel = get_string('statusdeleted', 'tool_dataprivacy');

  128                  case api::DATAREQUEST_STATUS_EXPIRED:
  129                  case api::DATAREQUEST_STATUS_EXPIRED:
  130:                     $item->statuslabelclass = 'badge-secondary';
  130                      $item->statuslabel = get_string('statusexpired', 'tool_dataprivacy');
  131                      $item->statuslabel = get_string('statusexpired', 'tool_dataprivacy');

admin/tool/dataprivacy/templates/component_status.mustache:
  60          {{#external}}
  61          {{#external}}
  62:             <span class="badge badge-pill badge-notice">{{#str}}external, tool_dataprivacy{{/str}}</span>

  62          {{/external}}
  63          {{#deprecated}}
  64          {{#deprecated}}
  65:             <span class="badge badge-pill badge-warning">{{#str}}deprecated, tool_dataprivacy{{/str}}</span>

  65          {{/deprecated}}
  66          {{#userlistnoncompliance}}
  67          {{#userlistnoncompliance}}
  68:             <span class="badge badge-pill badge-warning">{{#str}}userlistnoncompliant, tool_dataprivacy{{/str}}</span>
  68          {{/userlistnoncompliance}}
  69          {{/userlistnoncompliance}}

admin/tool/dataprivacy/templates/data_registry_compliance.mustache:
  44          <dd>{{#str}}requiresattentionexplanation, tool_dataprivacy{{/str}}</dd>
  45          <dd>{{#str}}requiresattentionexplanation, tool_dataprivacy{{/str}}</dd>
  46:         <dt><span class="badge badge-pill badge-notice">{{#str}}external, tool_dataprivacy{{/str}}</span></dt>

  46          <dd>{{#str}}externalexplanation, tool_dataprivacy{{/str}}</dd>
  47          <dd>{{#str}}externalexplanation, tool_dataprivacy{{/str}}</dd>
  48:         <dt><span class="badge badge-pill badge-warning">{{#str}}deprecated, tool_dataprivacy{{/str}}</span></dt>

  48          <dd>{{#str}}deprecatedexplanation, tool_dataprivacy{{/str}}</dd>
  49          <dd>{{#str}}deprecatedexplanation, tool_dataprivacy{{/str}}</dd>
  50:         <dt><span class="badge badge-pill badge-warning">{{#str}}userlistnoncompliant, tool_dataprivacy{{/str}}</span></dt>
  50          <dd>{{#str}}userlistexplanation, tool_dataprivacy{{/str}}</dd>
  51          <dd>{{#str}}userlistexplanation, tool_dataprivacy{{/str}}</dd>

admin/tool/dataprivacy/templates/my_data_requests.mustache:
  36                  "comments": "I would like to download all of my daughter's personal data",
  37                  "comments": "I would like to download all of my daughter's personal data",
  38:                 "statuslabelclass": "badge-secondary",

  38                  "statuslabel": "Pending",
  39                  "statuslabel": "Pending",

  48                  "comments": "Give me all of the information you have about me, or else...",
  49                  "comments": "Give me all of the information you have about me, or else...",
  50:                 "statuslabelclass": "badge-warning",

  50                  "statuslabel": "Awaiting completion",
  51                  "statuslabel": "Awaiting completion",

  60                  "comments": "Please delete all of my son's personal data.",
  61                  "comments": "Please delete all of my son's personal data.",
  62:                 "statuslabelclass": "badge-success",

  62                  "statuslabel": "Deleted",
  63                  "statuslabel": "Deleted",

  84                  "comments": "Please let me download my data",
  85                  "comments": "Please let me download my data",
  86:                 "statuslabelclass": "badge-info",
  86                  "statuslabel": "Processing",
  87                  "statuslabel": "Processing",

admin/tool/dataprivacy/templates/request_details.mustache:
  50          "statuslabel": "Pending",
  51          "statuslabel": "Pending",
  52:         "statuslabelclass": "badge-secondary",
  52          "messagehtml": "<p>Hello,</p><p>I would like to download all of my personal data.</p><p>Thanks!</p>"
  53          "messagehtml": "<p>Hello,</p><p>I would like to download all of my personal data.</p><p>Thanks!</p>"

admin/tool/lp/templates/course_competencies_page.mustache:
  83              {{#grade}}
  84              {{#grade}}
  85:             <span class="badge {{#proficiency}}badge-success{{/proficiency}}{{^proficiency}}badge-danger{{/proficiency}}">{{gradename}}</span>
  85              {{/grade}}
  86              {{/grade}}

admin/tool/lp/templates/evidence_summary.mustache:
  58  {{#grade}}
  59  {{#grade}}
  60:     <p><span class="badge badge-info">{{gradename}}</span></p>
  60  {{/grade}}
  61  {{/grade}}

admin/tool/lp/templates/plans_page.mustache:
  58                 {{#isbasedontemplate}}
  59                 {{#isbasedontemplate}}
  60:                <span class="badge badge-info">{{#str}}yes{{/str}}</span>
  60                 {{/isbasedontemplate}}
  61                 {{/isbasedontemplate}}

admin/tool/lp/templates/template_competencies_page.mustache:
  59                          {{^hascourses}}
  60                          {{^hascourses}}
  61:                         <span class="badge badge-info">{{#str}}nolinkedcourses, tool_lp{{/str}}</span>
  61                          {{/hascourses}}
  62                          {{/hascourses}}

admin/tool/lp/templates/user_competency_summary_in_course.mustache:
  82          <dd>
  83          <dd>
  84:             <span class="badge {{#proficiency}}badge-success{{/proficiency}}{{^proficiency}}badge-danger{{/proficiency}} float-left">
  84                  {{proficiencyname}}
  85                  {{proficiencyname}}

admin/tool/lp/templates/user_competency_summary_in_plan.mustache:
   69          <dd>
   70          <dd>
   71:             <span class="badge {{#proficiency}}badge-success{{/proficiency}}{{^proficiency}}badge-danger{{/proficiency}} float-left">

   71                  {{proficiencyname}}
   72                  {{proficiencyname}}

  102          <dd>
  103          <dd>
  104:             <span class="badge {{#proficiency}}badge-success{{/proficiency}}{{^proficiency}}badge-danger{{/proficiency}} float-left">
  104                  {{proficiencyname}}
  105                  {{proficiencyname}}

admin/tool/lp/templates/user_competency_summary.mustache:
  58              <dd>
  59              <dd>
  60:                 <span class="badge {{#proficiency}}badge-success{{/proficiency}}{{^proficiency}}badge-danger{{/proficiency}} float-left">
  60                      {{proficiencyname}}
  61                      {{proficiencyname}}

admin/tool/mfa/classes/output/renderer.php:
  42              case factor::STATE_PASS:
  43              case factor::STATE_PASS:
  44:                 return html_writer::tag('span', get_string('state:pass', 'tool_mfa'), ['class' => 'badge badge-success']);

  44
  45              case factor::STATE_FAIL:
  46              case factor::STATE_FAIL:
  47:                 return html_writer::tag('span', get_string('state:fail', 'tool_mfa'), ['class' => 'badge badge-danger']);

  47
  48              case factor::STATE_NEUTRAL:
  49              case factor::STATE_NEUTRAL:
  50:                 return html_writer::tag('span', get_string('state:neutral', 'tool_mfa'), ['class' => 'badge badge-warning']);

  50
  51
  52                  return html_writer::tag('span', get_string('state:unknown', 'tool_mfa'),
  53                  return html_writer::tag('span', get_string('state:unknown', 'tool_mfa'),
  54:                         ['class' => 'badge badge-secondary']);

  54
  55

  58              default:
  59              default:
  60:                 return html_writer::tag('span', get_string('pending', 'tool_mfa'), ['class' => 'badge badge-secondary']);
  60          }
  61          }

admin/tool/policy/classes/output/page_managedocs_list.php:
  153          if ($status == policy_version::STATUS_ACTIVE) {
  154          if ($status == policy_version::STATUS_ACTIVE) {
  155:             $version->statustext = html_writer::span($version->statustext, 'badge badge-success');

  155          } else if ($status == policy_version::STATUS_DRAFT) {
  156          } else if ($status == policy_version::STATUS_DRAFT) {
  157:             $version->statustext = html_writer::span($version->statustext, 'badge badge-warning');
  157          } else {
  158          } else {

admin/tool/policy/templates/acceptances.mustache:
  111                              <a href="{{viewurl}}">{{{revision}}}</a>
  112                              <a href="{{viewurl}}">{{{revision}}}</a>
  113:                             {{#iscurrent}}<span class="badge badge-success">{{#str}} status1, tool_policy {{/str}}</span>{{/iscurrent}}
  114:                             {{#isoptional}}<span class="badge badge-info">{{#str}} policydocoptionalyes, tool_policy {{/str}}</span>{{/isoptional}}
  114                          </td>
  115                          </td>

admin/tool/task/renderer.php:
  463              $componentname .= ' ' . html_writer::span(
  464              $componentname .= ' ' . html_writer::span(
  465:                             get_string('disabled', 'tool_task'), 'badge badge-secondary');
  465          }
  466          }

admin/tool/task/classes/running_tasks_table.php:
  111          if ($row->type == 'scheduled') {
  112          if ($row->type == 'scheduled') {
  113:             $output = \html_writer::span(get_string('scheduled', 'tool_task'), 'badge badge-primary');

  113          } else if ($row->type == 'adhoc') {
  114          } else if ($row->type == 'adhoc') {
  115:             $output = \html_writer::span(get_string('adhoc', 'tool_task'), 'badge badge-dark');
  115          } else {
  116          } else {

availability/yui/build/moodle-core_availability-form/moodle-core_availability-form-debug.js:
   437          // Also if it's not the root, none is actually invalid, so add a label.
   438          // Also if it's not the root, none is actually invalid, so add a label.
   439:         noneNode.appendChild(Y.Node.create('<span class="mt-1 badge badge-warning">' +

   439                  M.util.get_string('invalid', 'availability') + '</span>'));
   440                  M.util.get_string('invalid', 'availability') + '</span>'));

  1003      this.node.appendChild(document.createTextNode(' '));
  1004      this.node.appendChild(document.createTextNode(' '));
  1005:     this.node.appendChild(Y.Node.create('<span class="badge badge-warning"/>'));

  1005  };
  1006  };

  1040      // If any errors were added, add the marker to this item.
  1041      // If any errors were added, add the marker to this item.
  1042:     var errorLabel = this.node.one('> .badge-warning');
  1042      if (errors.length !== before && !errorLabel.get('firstChild')) {
  1043      if (errors.length !== before && !errorLabel.get('firstChild')) {

availability/yui/build/moodle-core_availability-form/moodle-core_availability-form.js:
   437          // Also if it's not the root, none is actually invalid, so add a label.
   438          // Also if it's not the root, none is actually invalid, so add a label.
   439:         noneNode.appendChild(Y.Node.create('<span class="mt-1 badge badge-warning">' +

   439                  M.util.get_string('invalid', 'availability') + '</span>'));
   440                  M.util.get_string('invalid', 'availability') + '</span>'));

  1003      this.node.appendChild(document.createTextNode(' '));
  1004      this.node.appendChild(document.createTextNode(' '));
  1005:     this.node.appendChild(Y.Node.create('<span class="badge badge-warning"/>'));

  1005  };
  1006  };

  1040      // If any errors were added, add the marker to this item.
  1041      // If any errors were added, add the marker to this item.
  1042:     var errorLabel = this.node.one('> .badge-warning');
  1042      if (errors.length !== before && !errorLabel.get('firstChild')) {
  1043      if (errors.length !== before && !errorLabel.get('firstChild')) {

availability/yui/src/form/js/form.js:
   435          // Also if it's not the root, none is actually invalid, so add a label.
   436          // Also if it's not the root, none is actually invalid, so add a label.
   437:         noneNode.appendChild(Y.Node.create('<span class="mt-1 badge badge-warning">' +

   437                  M.util.get_string('invalid', 'availability') + '</span>'));
   438                  M.util.get_string('invalid', 'availability') + '</span>'));

  1001      this.node.appendChild(document.createTextNode(' '));
  1002      this.node.appendChild(document.createTextNode(' '));
  1003:     this.node.appendChild(Y.Node.create('<span class="badge badge-warning"/>'));

  1003  };
  1004  };

  1038      // If any errors were added, add the marker to this item.
  1039      // If any errors were added, add the marker to this item.
  1040:     var errorLabel = this.node.one('> .badge-warning');
  1040      if (errors.length !== before && !errorLabel.get('firstChild')) {
  1041      if (errors.length !== before && !errorLabel.get('firstChild')) {

blocks/myoverview/templates/view-list.mustache:
  81                          <div class="d-flex flex-wrap">
  82                          <div class="d-flex flex-wrap">
  83:                             <span class="badge badge-info">{{#str}} hiddenfromstudents {{/str}}</span>
  83                          </div>
  84                          </div>

blocks/myoverview/templates/view-summary.mustache:
  83                      <div class="d-flex flex-wrap">
  84                      <div class="d-flex flex-wrap">
  85:                         <span class="badge badge-info">{{#str}} hiddenfromstudents {{/str}}</span>
  85                      </div>
  86                      </div>

blocks/site_main_menu/block_site_main_menu.php:
  62          $badgeattributes = [
  63          $badgeattributes = [
  64:             'class' => 'badge badge-pill badge-warning mt-2',
  64              'data-region' => 'visibility'
  65              'data-region' => 'visibility'

blocks/social_activities/block_social_activities.php:
  63          $badgeattributes = [
  64          $badgeattributes = [
  65:             'class' => 'badge badge-pill badge-warning mt-2',
  65              'data-region' => 'visibility'
  66              'data-region' => 'visibility'

blocks/timeline/templates/event-list-item.mustache:
  68                      <h6 class="event-name mb-0 pb-1 text-truncate">
  69                      <h6 class="event-name mb-0 pb-1 text-truncate">
  70:                         {{#overdue}}<span class="badge badge-pill badge-danger ml-1 float-right">{{#str}} overdue, block_timeline {{/str}}</span>{{/overdue}}

  70                          <a href="{{url}}"
  71                          <a href="{{url}}"

  94                  {{#action.showitemcount}}
  95                  {{#action.showitemcount}}
  96:                 <span class="badge badge-secondary">{{action.itemcount}}</span>
  96                  {{/action.showitemcount}}
  97                  {{/action.showitemcount}}

course/format/classes/output/activitybadge.php:
  38          'none' => 'badge-none',
  39          'none' => 'badge-none',
  40:         'dark' => 'badge-dark',
  41:         'danger' => 'badge-danger',
  42:         'warning' => 'badge-warning',
  43:         'info' => 'badge-info',
  43      ];
  44      ];

course/format/templates/local/content/cm.mustache:
  26          "hasname": "true",
  27          "hasname": "true",
  28:         "afterlink": "<span class=\"badge badge-primary\">30 unread messages</span>",

  28          "hasextras": true,
  29          "hasextras": true,
  30:         "extras": ["<span class=\"badge badge-secondary\">[extras]</span>"],
  30          "activityinfo": {
  31          "activityinfo": {

course/format/templates/local/content/section.mustache:
  67          "availability": {
  68          "availability": {
  69:             "info": "<span class=\"badge badge-info\">Hidden from students</span>",
  69              "hasavailability": true
  70              "hasavailability": true

course/format/templates/local/content/cm/activity.mustache:
  44          "hasextras": true,
  45          "hasextras": true,
  46:         "extras": ["<span class=\"badge badge-secondary\">[extras]</span>"],
  46          "activityinfo": {
  47          "activityinfo": {

course/format/templates/local/content/cm/activitybadge.mustache:
  45  >
  46  >
  47:     <span class="activitybadge badge badge-pill {{badgestyle}}">
  47          {{#badgeurl}}
  48          {{#badgeurl}}

course/format/templates/local/content/cm/availability.mustache:
  39          {{^isrestricted}}
  40          {{^isrestricted}}
  41:             <span class="badge badge-pill badge-warning">{{{text}}}</span>
  41          {{/isrestricted}}
  42          {{/isrestricted}}

course/format/templates/local/content/cm/visibility.mustache:
  68          {{< core/local/dropdown/status}}
  69          {{< core/local/dropdown/status}}
  70:             {{$ buttonclasses }} badge badge-pill badge-secondary dropdown-toggle border-0 {{/ buttonclasses }}

  70          {{/ core/local/dropdown/status}}
  71          {{/ core/local/dropdown/status}}

  76          <div class="activity-badges my-1 d-flex align-self-start align-items-center" data-region="visibility">
  77          <div class="activity-badges my-1 d-flex align-self-start align-items-center" data-region="visibility">
  78:             <span class="badge badge-pill badge-secondary">{{#pix}}i/show, core{{/pix}}{{#str}}hiddenfromstudents{{/str}}</span>

  78          </div>
  79          </div>

  81          <div class="activity-badges my-1 d-flex align-self-start align-items-center" data-region="visibility">
  82          <div class="activity-badges my-1 d-flex align-self-start align-items-center" data-region="visibility">
  83:             <span class="badge badge-pill badge-secondary">{{#pix}}t/stealth, core{{/pix}}{{#str}}hiddenoncoursepage{{/str}}</span>
  83          </div>
  84          </div>

course/format/templates/local/content/section/availability.mustache:
  39          {{^isrestricted}}
  40          {{^isrestricted}}
  41:             <span class="badge badge-pill badge-warning">{{{text}}}</span>
  41          {{/isrestricted}}
  42          {{/isrestricted}}

course/format/templates/local/content/section/badges.mustache:
  31  {{#editing}}
  32  {{#editing}}
  33:     <span class="badge badge-pill badge-primary order-1 {{^iscurrent}}d-none{{/iscurrent}}" data-type="iscurrent">

  33          {{ highlightedlabel }}
  34      </span>
  35      </span>
  36:     <span class="badge badge-pill badge-warning order-2 {{^hiddenfromstudents}}d-none{{/hiddenfromstudents}}" data-type="hiddenfromstudents">

  36          {{#str}}hiddenfromstudents{{/str}}
  37      </span>
  38      </span>
  39:     <span class="badge badge-pill badge-secondary order-3 {{^notavailable}}d-none{{/notavailable}}">

  39          {{#str}}notavailable{{/str}}
  40          {{#str}}notavailable{{/str}}

  43      {{#iscurrent}}
  44      {{#iscurrent}}
  45:         <span class="badge badge-pill badge-primary order-1">{{ highlightedlabel }}</span>

  45      {{/iscurrent}}
  46      {{#hiddenfromstudents}}
  47      {{#hiddenfromstudents}}
  48:         <span class="badge badge-pill badge-warning order-2">{{#str}}hiddenfromstudents{{/str}}</span>

  48      {{/hiddenfromstudents}}
  49      {{#notavailable}}
  50      {{#notavailable}}
  51:         <span class="badge badge-pill badge-secondary order-3">{{#str}}notavailable{{/str}}</span>
  51      {{/notavailable}}
  52      {{/notavailable}}

course/format/templates/local/content/section/cmitem.mustache:
  27              "indent": 2,
  28              "indent": 2,
  29:             "afterlink": "<span class=\"badge badge-primary\">30 unread messages</span>",

  29              "hasextras": true,
  30              "hasextras": true,
  31:             "extras": ["<span class=\"badge badge-secondary\">[extras]</span>"],
  32:             "completion": "<span class=\"badge badge-success\">Completed!</span>"
  32          },
  33          },

course/format/templates/local/content/section/content.mustache:
  66          "availability": {
  67          "availability": {
  68:             "info": "<span class=\"badge badge-info\">Hidden from students</span>",
  68              "hasavailability": true
  69              "hasavailability": true

course/format/templates/local/courseindex/section.mustache:
   99          </a>
  100          </a>
  101:         <span class="current-badge badge badge-primary ml-2 px-2 rounded-pill">
  101              {{highlighted}}
  102              {{highlighted}}

course/format/tests/output/activitybadge_test.php:
  65          $result = $class->export_for_template($renderer);
  66          $result = $class->export_for_template($renderer);
  67:         $this->check_activitybadge($result, '1 unread post', 'badge-dark');
  67
  68

course/templates/completion_automatic.mustache:
  30      {{#statuscomplete}}
  31      {{#statuscomplete}}
  32:     <div class="badge badge-pill alert-success icon-no-margin" role="listitem" {{!

  32          }}{{#accessibledescription}}{{!
  33          }}{{#accessibledescription}}{{!

  40      {{#statuscompletefail}}
  41      {{#statuscompletefail}}
  42:     <div class="badge badge-pill alert-danger icon-no-margin" role="listitem" {{!

  42          }}{{#accessibledescription}}{{!
  43          }}{{#accessibledescription}}{{!

  50      {{#statusincomplete}}
  51      {{#statusincomplete}}
  52:     <div class="badge badge-pill badge-light" role="listitem" {{!

  52          }}{{#accessibledescription}}{{!
  53          }}{{#accessibledescription}}{{!

  60  {{^istrackeduser}}
  61  {{^istrackeduser}}
  62:     <div class="badge badge-pill badge-light" role="listitem">
  62          <span class="font-weight-normal">{{description}}</span>
  63          <span class="font-weight-normal">{{description}}</span>

course/templates/coursecard.mustache:
  68                      <div class="d-flex flex-wrap">
  69                      <div class="d-flex flex-wrap">
  70:                         <span class="badge badge-info">{{#str}} hiddenfromstudents {{/str}}</span>
  70                      </div>
  71                      </div>

course/tests/externallib_test.php:
  1179                  $this->assertEquals('1 unread post', $module['activitybadge']['badgecontent']);
  1180                  $this->assertEquals('1 unread post', $module['activitybadge']['badgecontent']);
  1181:                 $this->assertEquals('badge-dark', $module['activitybadge']['badgestyle']);
  1181
  1182

enrol/lti/templates/local/ltiadvantage/registered_platforms.mustache:
  82                  {{#isactive}}
  83                  {{#isactive}}
  84:                 <span class="badge badge-success">{{{statusstring}}}</span>

  84                  {{/isactive}}
  85                  {{^isactive}}
  86                  {{^isactive}}
  87:                 <span class="badge badge-info">{{{statusstring}}}</span>
  87                  {{/isactive}}
  88                  {{/isactive}}

grade/report/grader/lang/en/gradereport_grader.php:
  27  $string['clearsearch'] = 'Clear searched users';
  28  $string['clearsearch'] = 'Clear searched users';
  29: $string['collapsedcolumns'] = 'Collapsed columns <span class="badge badge-pill badge-primary ml-1" data-collapse="count">{$a}</span>';
  29  $string['eventgradereportviewed'] = 'Grader report viewed';
  30  $string['eventgradereportviewed'] = 'Grader report viewed';

grade/templates/category_settings.mustache:
  31      {{#calculatedgrade}}
  32      {{#calculatedgrade}}
  33:         <span class="badge badge-pill badge-light" role="listitem">

  33              <strong>{{calculatedgrade}}</strong>
  34              <strong>{{calculatedgrade}}</strong>

  36      {{#aggregation}}
  37      {{#aggregation}}
  38:         <span class="badge badge-pill badge-light" role="listitem">

  38              <strong>{{aggregation}}</strong>
  39              <strong>{{aggregation}}</strong>

  41      {{#aggregateonlygraded}}
  42      {{#aggregateonlygraded}}
  43:         <span class="badge badge-pill badge-light" role="listitem">

  43              <strong>{{#str}}aggregateonlygraded, grades{{/str}}</strong>
  44              <strong>{{#str}}aggregateonlygraded, grades{{/str}}</strong>

  46      {{#aggregateoutcomes}}
  47      {{#aggregateoutcomes}}
  48:         <span class="badge badge-pill badge-light" role="listitem">

  48              <strong>{{#str}}aggregateoutcomes, grades{{/str}}</strong>
  49              <strong>{{#str}}aggregateoutcomes, grades{{/str}}</strong>

  51      {{#droplow}}
  52      {{#droplow}}
  53:         <span class="badge badge-pill badge-light" role="listitem">

  53              <strong>{{#str}}droplowestvalues, grades, {{droplow}}{{/str}}</strong>
  54              <strong>{{#str}}droplowestvalues, grades, {{droplow}}{{/str}}</strong>

  56      {{#keephigh}}
  57      {{#keephigh}}
  58:         <span class="badge badge-pill badge-light" role="listitem">
  58              <strong>{{#str}}keephigh, grades{{/str}}</strong>
  59              <strong>{{#str}}keephigh, grades{{/str}}</strong>

h5p/classes/helper.php:
  303          $statusclasses = array(
  304          $statusclasses = array(
  305:             TEXTFILTER_DISABLED => 'badge badge-danger',
  306:             TEXTFILTER_OFF => 'badge badge-warning',
  307:             0 => 'badge badge-danger',
  308:             TEXTFILTER_ON => 'badge badge-success',
  308          );
  309          );

h5p/templates/h5ptoolsoverview.mustache:
  27                  "status": "On",
  28:                 "status_class": "bade badge-success",
  29                  "status_action": "<a href=\"admin/tool/task/schedule_task.php?task=core_task_h5p_get_content_types_task\">Run now</a>"

  35                  "status": "Off",
  36:                 "status_class": "bade badge-danger"
  37              }

lib/adminlib.php:
  10034                          array('href' => $url));
  10035                          array('href' => $url));
  10036:         $status = html_writer::tag('span', get_string('no'), array('class' => 'badge badge-danger'));

  10036          if ($CFG->enablewebservices) {
  10037          if ($CFG->enablewebservices) {

  10047                          array('href' => $url));
  10048                          array('href' => $url));
  10049:         $status = html_writer::tag('span', get_string('none'), array('class' => 'badge badge-danger'));

  10049          //retrieve activated protocol
  10050          //retrieve activated protocol

  10158                          array('href' => $url));
  10159                          array('href' => $url));
  10160:         $status = html_writer::tag('span', get_string('no'), array('class' => 'badge badge-danger'));

  10160          if ($CFG->enablewebservices) {
  10161          if ($CFG->enablewebservices) {

  10171                          array('href' => $url));
  10172                          array('href' => $url));
  10173:         $status = html_writer::tag('span', get_string('none'), array('class' => 'badge badge-danger'));

  10173          //retrieve activated protocol
  10174          //retrieve activated protocol

  11201
  11202
  11203:         $status = html_writer::tag('span', get_string('no'), array('class' => 'badge badge-danger'));

  11203          if (!empty($CFG->searchengine)) {
  11204              $status = html_writer::tag('span', get_string('pluginname', 'search_' . $CFG->searchengine),
  11205              $status = html_writer::tag('span', get_string('pluginname', 'search_' . $CFG->searchengine),
  11206:                 array('class' => 'badge badge-success'));

  11206
  11207

  11216
  11217
  11218:         $status = html_writer::tag('span', get_string('no'), array('class' => 'badge badge-danger'));

  11218          if ($anyenabled) {
  11219          if ($anyenabled) {
  11220:             $status = html_writer::tag('span', get_string('yes'), array('class' => 'badge badge-success'));

  11220
  11221

  11228              $row[0] = '3. ' . get_string('setupsearchengine', 'admin');
  11229              $row[0] = '3. ' . get_string('setupsearchengine', 'admin');
  11230:             $row[1] = html_writer::tag('span', get_string('no'), array('class' => 'badge badge-danger'));

  11230          } else {
  11231          } else {

  11245              if ($serverstatus === true) {
  11246              if ($serverstatus === true) {
  11247:                 $status = html_writer::tag('span', get_string('yes'), array('class' => 'badge badge-success'));

  11247              } else {
  11248              } else {
  11249:                 $status = html_writer::tag('span', $serverstatus, array('class' => 'badge badge-danger'));

  11249              }
  11250              }

  11258          if ($anyindexed) {
  11259          if ($anyindexed) {
  11260:             $status = html_writer::tag('span', get_string('yes'), array('class' => 'badge badge-success'));

  11260          } else {
  11261          } else {
  11262:             $status = html_writer::tag('span', get_string('no'), array('class' => 'badge badge-danger'));

  11262          }
  11263          }

  11270                          array('href' => $url));
  11271                          array('href' => $url));
  11272:         $status = html_writer::tag('span', get_string('no'), array('class' => 'badge badge-danger'));

  11272          if (\core_search\manager::is_global_search_enabled()) {
  11273          if (\core_search\manager::is_global_search_enabled()) {
  11274:             $status = html_writer::tag('span', get_string('yes'), array('class' => 'badge badge-success'));

  11274          }
  11275          }

  11282                                             array('href' => $url));
  11283                                             array('href' => $url));
  11284:         $status = html_writer::tag('span', get_string('no'), array('class' => 'badge badge-danger'));

  11284          if (\core_search\manager::can_replace_course_search()) {
  11285          if (\core_search\manager::can_replace_course_search()) {
  11286:             $status = html_writer::tag('span', get_string('yes'), array('class' => 'badge badge-success'));
  11286          }
  11287          }

lib/datalib.php:
  1816                  // Objects display the class name as a badge. Content goes within a <dl>.
  1817                  // Objects display the class name as a badge. Content goes within a <dl>.
  1818:                 $badge = html_writer::span(get_class($item), 'badge badge-primary');

  1818                  $out .= html_writer::tag('h5', $badge);
  1819                  $out .= html_writer::tag('h5', $badge);

  1833                  // Arrays show the same as objects but the badge is grey.
  1834                  // Arrays show the same as objects but the badge is grey.
  1835:                 $badge = html_writer::span($arrayinfo, 'badge badge-secondary');
  1835                  // Decide if there will be a <dl> tag - only if there is some content.
  1836                  // Decide if there will be a <dl> tag - only if there is some content.

lib/classes/moodlenet/share_progress_table.php:
  181          if ($row->status == share_recorder::STATUS_IN_PROGRESS) {
  182          if ($row->status == share_recorder::STATUS_IN_PROGRESS) {
  183:             $status = html_writer::span(get_string('inprogress'), 'badge badge-warning');

  183          } else if ($row->status == share_recorder::STATUS_SENT) {
  184          } else if ($row->status == share_recorder::STATUS_SENT) {
  185:             $status = html_writer::span(get_string('sent'), 'badge badge-success');

  185          } else if ($row->status == share_recorder::STATUS_ERROR) {
  186          } else if ($row->status == share_recorder::STATUS_ERROR) {
  187:             $status = html_writer::span(get_string('error'), 'badge badge-danger');
  187          }
  188          }

lib/form/templates/element-tags-inline.mustache:
  18              {{#element.options}}
  19:                 {{#selected}}<span class="badge badge-info">{{{text}}}</span>{{/selected}}
  20              {{/element.options}}

lib/form/templates/element-tags.mustache:
  18              {{#element.options}}
  19:                 {{#selected}}<span class="badge badge-info">{{{text}}}</span>{{/selected}}
  20              {{/element.options}}

lib/templates/availability_info.mustache:
  56      {{^isrestricted}}
  57:     <span class="badge badge-info">{{{text}}}</span>
  58      {{/isrestricted}}
  59      {{#isrestricted}}
  60:     <span class="badge badge-info">{{#str}}restricted, core{{/str}}</span> {{{text}}}
  61      {{/isrestricted}}

lib/templates/checkbox-toggleall-master.mustache:
  36          "deselectall": "Deselect all",
  37:         "labelclasses": "badge badge-info"
  38      }

lib/templates/checkbox-toggleall-slave.mustache:
  34          "classes": "p-1",
  35:         "labelclasses": "badge badge-info"
  36      }

lib/templates/form_autocomplete_selection_items.mustache:
  40  {{#items}}
  41:     <span role="option" data-value="{{value}}" aria-selected="true" class="badge badge-secondary m-1" style="font-size: 100%">
  42          <span aria-hidden="true">× </span>{{{label}}}

lib/templates/check/result/critical.mustache:
  35  }}
  36: <span class="badge badge-danger">{{status}}</span>

lib/templates/check/result/error.mustache:
  35  }}
  36: <span class="badge badge-danger">{{status}}</span>

lib/templates/check/result/info.mustache:
  35  }}
  36: <span class="badge badge-info">{{status}}</span>

lib/templates/check/result/na.mustache:
  35  }}
  36: <span class="badge badge-secondary">{{status}}</span>

lib/templates/check/result/ok.mustache:
  35  }}
  36: <span class="badge badge-success">{{status}}</span>

lib/templates/check/result/unknown.mustache:
  35  }}
  36: <span class="badge badge-success">{{status}}</span>

lib/templates/check/result/warning.mustache:
  35  }}
  36: <span class="badge badge-warning">{{status}}</span>

lib/templates/datafilter/autocomplete_selection_items.mustache:
  44      <span role="option" data-value="{{value}}" aria-selected="true"
  45:             class="badge badge-secondary clickable text-wrap text-break line-height-4 m-1">
  46          {{{label}}}<i class="icon fa fa-times pl-2 mr-0"></i>

message/output/popup/templates/message_content_item.mustache:
  71          <div class="unread-count-container">
  72:             <span data-region="unread-count" class="badge badge-danger">{{unreadcount}}</span>
  73          </div>

message/templates/message_drawer_conversations_list.mustache:
   99                  <span
  100                  <span
  101:                     class="badge badge-pill badge-primary {{^unreadcount}}hidden{{/unreadcount}}"
  101                      data-region="unread-count"
  102                      data-region="unread-count"

message/templates/message_drawer_messages_list.mustache:
  93          <span
  94:             class="badge badge-pill badge-primary {{^unreadcount}}hidden{{/unreadcount}}"
  95              data-region="unread-count"

message/templates/message_drawer_view_contacts_body.mustache:
  66                          {{#str}} requests {{/str}}
  67:                         <span class="badge badge-primary bg-primary ml-2 {{^contactrequestcount}}hidden{{/contactrequestcount}}"
  68                              data-region="contact-request-count"

message/templates/message_drawer_view_overview_header.mustache:
  70              <span
  71:                 class="badge badge-primary bg-primary ml-2 {{^contactrequestcount}}hidden{{/contactrequestcount}}"
  72                  data-region="contact-request-count"

message/templates/message_drawer_view_overview_section.mustache:
  64              <span
  65:                 class="{{^count.unread}}hidden{{/count.unread}} badge badge-pill badge-primary ml-auto bg-primary"
  66                  data-region="section-unread-count"

mod/forum/templates/discussion_list.mustache:
  217                                          <div>
  218:                                             <span class="badge badge-danger rounded" data-region="locked-label" {{^discussion.locked}}hidden{{/discussion.locked}}>
  219                                                  {{#str}}locked, forum{{/str}}

  222                                              <span>
  223:                                                  <button class="btn badge badge-primary rounded border-0" data-region="timed-label"
  224                                                      data-toggle="popover" data-container="body" data-placement="right" data-html="true"

  306                                                  <span class="lead">
  307:                                                     <a href="{{{discussion.urls.viewfirstunread}}}" class="badge badge-primary rounded-pill font-weight-normal"
  308                                                         title="{{#str}}unreadpostsnumber, mod_forum, {{unread}}{{/str}}" aria-label="{{#str}}unreadpostsnumber, mod_forum, {{unread}}{{/str}}">

mod/forum/templates/forum_discussion_nested_v2_first_post.mustache:
  311                          {{#haswordcount}}
  312:                             <span class="ml-auto badge badge-light">
  313                                  {{#str}} numwords, core, {{wordcount}} {{/str}}

  348                  {{#discussionlocked}}
  349:                     <div><span class="badge badge-danger mt-2">{{#str}} locked, mod_forum {{/str}}</span></div>
  350                  {{/discussionlocked}}

mod/glossary/locallib.php:
  753              if (!$item->approved) {
  754              if (!$item->approved) {
  755:                 $approved = '<br>'. html_writer::span(get_string('entrynotapproved', 'mod_glossary'), 'badge badge-warning');
  755              }
  756              }

mod/lesson/essay.php:
  422                      if (!$essayinfo->graded) {
  423                      if (!$essayinfo->graded) {
  424:                         $class = "badge badge-warning";

  424                          $status = get_string('notgraded', 'lesson');
  425                      } elseif (!$essayinfo->sent) {
  426                      } elseif (!$essayinfo->sent) {
  427:                         $class = "badge badge-success";

  427                          $status = get_string('graded', 'lesson');
  428                      } else {
  429                      } else {
  430:                         $class = "badge badge-success";
  430                          $status = get_string('sent', 'lesson');
  431                          $status = get_string('sent', 'lesson');

mod/lesson/pagetypes/multichoice.php:
  345              $answertext = format_text($answer->answer,$answer->answerformat,$formattextdefoptions);
  346              $answertext = format_text($answer->answer,$answer->answerformat,$formattextdefoptions);
  347:             $correctresponsetext = html_writer::div(get_string('correctresponse', 'lesson'), 'badge badge-success');
  347              if ($this->properties->qoption) {
  348              if ($this->properties->qoption) {

mod/lesson/pagetypes/truefalse.php:
  261              $answertext = format_text($answer->answer, $answer->answerformat, $formattextdefoptions);
  262              $answertext = format_text($answer->answer, $answer->answerformat, $formattextdefoptions);
  263:             $correctresponsetext = html_writer::div(get_string('correctresponse', 'lesson'), 'badge badge-success');
  263              if ($this->properties->qoption) {
  264              if ($this->properties->qoption) {

mod/lti/templates/tool_card.mustache:
  102                  <div class="badge
  103:                             {{#state.pending}}badge-info{{/state.pending}}
  104:                             {{#state.configured}}badge-success{{/state.configured}}
  105:                             {{#state.rejected}}badge-danger{{/state.rejected}}
  106:                             {{#state.unknown}}badge-warning{{/state.unknown}}">
  107                      {{state.text}}

mod/lti/templates/tool_proxy_card.mustache:
  74                  <div class="badge
  75:                             {{#state.pending}}badge-info{{/state.pending}}
  76:                             {{#state.configured}}badge-success{{/state.configured}}
  77:                             {{#state.rejected}}badge-danger{{/state.rejected}}
  78:                             {{#state.unknown}}badge-warning{{/state.unknown}}">
  79                      {{state.text}}

mod/quiz/locallib.php:
  1656                  html_writer::span(get_string('idnumber', 'question'), 'accesshide') .
  1657                  html_writer::span(get_string('idnumber', 'question'), 'accesshide') .
  1658:                 ' ' . s($question->idnumber), 'badge badge-primary');
  1658      }
  1659      }

payment/accounts.php:
  53      if (!$account->is_available()) {
  54      if (!$account->is_available()) {
  55:         $name .= ' ' . html_writer::span(get_string('accountnotavailable', 'payment'), 'badge badge-warning');

  55      }
  56      if ($account->get('archived')) {
  57      if ($account->get('archived')) {
  58:         $name .= ' ' . html_writer::span(get_string('accountarchived', 'payment'), 'badge badge-secondary');
  58      }
  59      }

question/bank/managecategories/templates/listitem.mustache:
  40          {{#idnumber}}
  41:         <span class="badge badge-primary">
  42              <span class="accesshide">

question/bank/previewquestion/templates/preview_question.mustache:
  73      <div class="d-flex">
  74:         <div class="badge-primary h-50 px-2 mt-n2">
  75              <span class="accesshide">ID number</span>

question/bank/viewquestionname/classes/question_name_idnumber_tags_column.php:
  52                              \html_writer::span(get_string('idnumber', 'question') . '&nbsp;', 'accesshide')
  53                              \html_writer::span(get_string('idnumber', 'question') . '&nbsp;', 'accesshide')
  54:                             . \html_writer::span(s($question->idnumber), 'badge badge-primary'), 'ml-1');
  54          }
  55          }

reportbuilder/classes/local/systemreports/reports_list.php:
  152                      // Add danger badge if report source is not valid (either it's missing, or has errors).
  153                      // Add danger badge if report source is not valid (either it's missing, or has errors).
  154:                     return html_writer::span(get_string('errorsourceinvalid', 'core_reportbuilder'), 'badge badge-danger');
  154                  }
  155                  }

tag/templates/taglist.mustache:
  55              <li {{#overlimit}}class="overlimit"{{/overlimit}}>
  56:                 <a href="{{viewurl}}" class="badge badge-info {{#isstandard}}standardtag{{/isstandard}}" >
  57                  {{#flag}}

user/templates/status_details.mustache:
  37          "status": "Active",
  38:         "statusclass": "badge badge-success",
  39          "timestart": "1 January 2017",

user/templates/status_field.mustache:
  63       data-status="{{status}}" data-timestart="{{timestart}}" data-timeend="{{timeend}}" data-timeenrolled="{{timeenrolled}}">
  64:     <span class="badge {{#active}}badge-success{{/active}}{{#suspended}}badge-warning{{/suspended}}{{#notcurrent}}badge-secondary{{/notcurrent}}">{{status}}</span>
  65      <a data-action="showdetails" href="#" role="button" tabindex="0">{{!

webservice/renderer.php:
  127              if (!empty($user->missingcapabilities)) {
  128              if (!empty($user->missingcapabilities)) {
  129:                 $count = html_writer::span(count($user->missingcapabilities), 'badge badge-danger');

  129                  $links = array_map(function($capname) {
  130                  $links = array_map(function($capname) {

  675              if (!empty($description->deprecated)) {
  676              if (!empty($description->deprecated)) {
  677:                 $tags .= ' ' . html_writer::span(get_string('deprecated', 'core_webservice'), 'badge badge-warning');
  677              }
  678              }

webservice/classes/token_table.php:
  183                  && array_key_exists($data->userid, $usermissingcaps)) {
  184                  && array_key_exists($data->userid, $usermissingcaps)) {
  185:             $count = \html_writer::span(count($usermissingcaps[$data->userid]), 'badge badge-danger');
  185              $links = array_map(function($capname) {
  186              $links = array_map(function($capname) {
