Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
48
core/modules/system/templates/status-report.html.twig
Normal file
48
core/modules/system/templates/status-report.html.twig
Normal file
|
@ -0,0 +1,48 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation for the status report.
|
||||
*
|
||||
* Available variables:
|
||||
* - requirements: Contains multiple requirement instances.
|
||||
* Each requirement contains:
|
||||
* - title: The title of the requirement.
|
||||
* - value: (optional) The requirement's status.
|
||||
* - description: (optional) The requirement's description.
|
||||
* - severity_title: The title of the severity.
|
||||
* - severity_status: Indicates the severity status.
|
||||
*
|
||||
* @see template_preprocess_status_report()
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
<table class="system-status-report">
|
||||
<thead>
|
||||
<tr class="visually-hidden">
|
||||
<th>{{ 'Status'|t }}</th><th>{{ 'Component'|t }}</th><th>{{ 'Details'|t }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for requirement in requirements %}
|
||||
{% if requirement.severity_status in ['warning', 'error'] %}
|
||||
<tr class="system-status-report__entry color-{{ requirement.severity_status }}">
|
||||
{% else %}
|
||||
<tr class="system-status-report__entry">
|
||||
{% endif %}
|
||||
<td class="system-status-report__status-icon system-status-report__status-icon--{{ requirement.severity_status }}">
|
||||
<div title="{{ requirement.severity_title }}">
|
||||
<span class="visually-hidden">{{ requirement.severity_title }}</span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="system-status-report__status-title">{{ requirement.title }}</td>
|
||||
<td>
|
||||
{{ requirement.value }}
|
||||
{% if requirement.description %}
|
||||
<div class="description">{{ requirement.description }}</div>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
Reference in a new issue