first commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override for a feed icon.
|
||||
*
|
||||
* Available variables:
|
||||
* - url: An internal system path or a fully qualified external URL of the feed.
|
||||
* - attributes: Remaining HTML attributes for the feed link.
|
||||
* - title: A descriptive title of the feed link.
|
||||
* - class: HTML classes to be applied to the feed link.
|
||||
*/
|
||||
#}
|
||||
<a href="{{ url }}"{{ attributes.addClass('feed-icon') }}>
|
||||
{{ 'Subscribe to @title'|t({'@title': title}) }}
|
||||
</a>
|
||||
@@ -0,0 +1,22 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override for a progress bar.
|
||||
*
|
||||
* Note that the core Batch API uses this only for non-JavaScript batch jobs.
|
||||
*
|
||||
* Available variables:
|
||||
* - label: The label of the working task.
|
||||
* - percent: The percentage of the progress.
|
||||
* - message: A string containing information to be displayed.
|
||||
*/
|
||||
#}
|
||||
{{ attach_library('mediteran/progress') }}
|
||||
<div class="progress" data-drupal-progress>
|
||||
{% if label %}
|
||||
<div class="progress__label">{{ label }}</div>
|
||||
{% endif %}
|
||||
<div class="progress__track"><div class="progress__bar" style="width: {{ percent }}%"></div></div>
|
||||
<div class="progress__percentage">{{ percent }}%</div>
|
||||
<div class="progress__description">{{ message }}</div>
|
||||
</div>
|
||||
@@ -0,0 +1,20 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override for empty spans with RDF attributes.
|
||||
*
|
||||
* The XHTML+RDFa doctype allows either <span></span> or <span /> syntax to
|
||||
* be used, but for maximum browser compatibility, W3C recommends the
|
||||
* former when serving pages using the text/html media type, see
|
||||
* http://www.w3.org/TR/xhtml1/#C_3.
|
||||
*
|
||||
* Available variables:
|
||||
* - metadata: Each item within corresponds to its own set of attributes,
|
||||
* and therefore, needs its own 'attributes' element.
|
||||
*
|
||||
* @see template_preprocess_rdf_metadata()
|
||||
*/
|
||||
#}
|
||||
{% for attributes in metadata %}
|
||||
<span{{ attributes.addClass('rdf-meta', 'hidden') }}></span>
|
||||
{% endfor %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override for wrapping content with RDF attributes.
|
||||
*
|
||||
* Available variables:
|
||||
* - content: The content being wrapped with RDF attributes.
|
||||
* - attributes: HTML attributes, including RDF attributes for wrapper element.
|
||||
*/
|
||||
#}
|
||||
<span{{ attributes }}>{{ content }}</span>
|
||||
@@ -0,0 +1,55 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override for status messages.
|
||||
*
|
||||
* Displays status, error, and warning messages, grouped by type.
|
||||
*
|
||||
* An invisible heading identifies the messages for assistive technology.
|
||||
* Sighted users see a colored box. See http://www.w3.org/TR/WCAG-TECHS/H69.html
|
||||
* for info.
|
||||
*
|
||||
* Add an ARIA label to the contentinfo area so that assistive technology
|
||||
* user agents will better describe this landmark.
|
||||
*
|
||||
* Available variables:
|
||||
* - message_list: List of messages to be displayed, grouped by type.
|
||||
* - status_headings: List of all status types.
|
||||
* - display: (optional) May have a value of 'status' or 'error' when only
|
||||
* displaying messages of that specific type.
|
||||
* - attributes: HTML attributes for the element, including:
|
||||
* - class: HTML classes.
|
||||
*/
|
||||
#}
|
||||
{% block messages %}
|
||||
{% for type, messages in message_list %}
|
||||
{%
|
||||
set classes = [
|
||||
'messages',
|
||||
'messages--' ~ type,
|
||||
]
|
||||
%}
|
||||
<div role="contentinfo" aria-label="{{ status_headings[type] }}"{{ attributes.addClass(classes)|without('role', 'aria-label') }}>
|
||||
{% if type == 'error' %}
|
||||
<div role="alert">
|
||||
{% endif %}
|
||||
{% if status_headings[type] %}
|
||||
<h2 class="visually-hidden">{{ status_headings[type] }}</h2>
|
||||
{% endif %}
|
||||
{% if messages|length > 1 %}
|
||||
<ul class="messages__list">
|
||||
{% for message in messages %}
|
||||
<li class="messages__item">{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
{{ messages|first }}
|
||||
{% endif %}
|
||||
{% if type == 'error' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{# Remove type specific classes. #}
|
||||
{% set attributes = attributes.removeClass(classes) %}
|
||||
{% endfor %}
|
||||
{% endblock messages %}
|
||||
@@ -0,0 +1,26 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override for status report counter.
|
||||
*
|
||||
* Available variables:
|
||||
* - amount: The number shown on counter.
|
||||
* - text: The text shown on counter.
|
||||
* - severity: The severity of the counter.
|
||||
*
|
||||
* @ingroup themable
|
||||
*/
|
||||
#}
|
||||
{%
|
||||
set classes = [
|
||||
'system-status-counter',
|
||||
'system-status-counter--' ~ severity,
|
||||
]
|
||||
%}
|
||||
<span{{ attributes.addClass(classes) }}>
|
||||
<span class="system-status-counter__status-icon system-status-counter__status-icon--{{ severity }}"></span>
|
||||
<span class="system-status-counter__status-title">
|
||||
<span class="system-status-counter__title-count">{{ amount }} {{ text }}</span>
|
||||
<span class="system-status-counter__details"><a href="#{{ severity }}" ><span class="visually-hidden">{{ text }} </span>Details</a></span>
|
||||
</span>
|
||||
</span>
|
||||
@@ -0,0 +1,99 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override for status report general info.
|
||||
*
|
||||
* Available variables:
|
||||
* - drupal: The status of Drupal installation:
|
||||
* - value: The current status of Drupal installation.
|
||||
* - description: The description for current status of Drupal installation.
|
||||
* - cron: The status of cron:
|
||||
* - value: The current status of cron.
|
||||
* - description: The description for current status of cron.
|
||||
* - cron.run_cron: An array to render a button for running cron.
|
||||
* - database_system: The status of database system:
|
||||
* - value: The current status of database sytem.
|
||||
* - description: The description for current status of cron.
|
||||
* - database_system_version: The info about current database version:
|
||||
* - value: The current version of database.
|
||||
* - description: The description for current version of database.
|
||||
* - php: The current version of PHP:
|
||||
* - value: The status of currently installed PHP version.
|
||||
* - description: The description for current installed PHP version.
|
||||
* - php_memory_limit: The info about current PHP memory limit:
|
||||
* - value: The status of currently set PHP memory limit.
|
||||
* - description: The description for currently set PHP memory limit.
|
||||
* - webserver: The info about currently installed web server:
|
||||
* - value: The status of currently installed web server.
|
||||
* - description: The description for the status of currently installed web
|
||||
* server.
|
||||
*/
|
||||
#}
|
||||
<div class="system-status-general-info">
|
||||
<h2 class="system-status-general-info__header">{{ 'General System Information'|t }}</h2>
|
||||
<div class="system-status-general-info__items">
|
||||
<div class="system-status-general-info__item">
|
||||
<span class="system-status-general-info__item-icon system-status-general-info__item-icon--d8"></span>
|
||||
<div class="system-status-general-info__item-details">
|
||||
<h3 class="system-status-general-info__item-title">{{ 'Drupal Version'|t }}</h3>
|
||||
{{ drupal.value }}
|
||||
{% if drupal.description %}
|
||||
<div class="description">{{ drupal.description }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="system-status-general-info__item">
|
||||
<span class="system-status-general-info__item-icon system-status-general-info__item-icon--clock"></span>
|
||||
<div class="system-status-general-info__item-details">
|
||||
<h3 class="system-status-general-info__item-title">{{ 'Last Cron Run'|t }}</h3>
|
||||
{{ cron.value }}
|
||||
{% if cron.run_cron %}
|
||||
<div class="system-status-general-info__run-cron">{{ cron.run_cron }}</div>
|
||||
{% endif %}
|
||||
{% if cron.description %}
|
||||
<div class="system-status-general-info__description">{{ cron.description }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="system-status-general-info__item">
|
||||
<span class="system-status-general-info__item-icon system-status-general-info__item-icon--server"></span>
|
||||
<div class="system-status-general-info__item-details">
|
||||
<h3 class="system-status-general-info__item-title">{{ 'Web Server'|t }}</h3>
|
||||
{{ webserver.value }}
|
||||
{% if webserver.description %}
|
||||
<div class="description">{{ webserver.description }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="system-status-general-info__item">
|
||||
<span class="system-status-general-info__item-icon system-status-general-info__item-icon--php"></span>
|
||||
<div class="system-status-general-info__item-details">
|
||||
<h3 class="system-status-general-info__item-title">{{ 'PHP'|t }}</h3>
|
||||
<h4 class="system-status-general-info__sub-item-title">{{ 'Version'|t }}</h4>{{ php.value }}
|
||||
{% if php.description %}
|
||||
<div class="description">{{ php.description }}</div>
|
||||
{% endif %}
|
||||
|
||||
<h4 class="system-status-general-info__sub-item-title">{{ 'Memory limit'|t }}</h4>{{ php_memory_limit.value }}
|
||||
{% if php_memory_limit.description %}
|
||||
<div class="description">{{ php_memory_limit.description }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="system-status-general-info__item">
|
||||
<span class="system-status-general-info__item-icon system-status-general-info__item-icon--database"></span>
|
||||
<div class="system-status-general-info__item-details">
|
||||
<h3 class="system-status-general-info__item-title">{{ 'Database'|t }}</h3>
|
||||
<h4 class="system-status-general-info__sub-item-title">{{ 'Version'|t }}</h4>{{ database_system_version.value }}
|
||||
{% if database_system_version.description %}
|
||||
<div class="description">{{ database_system_version.description }}</div>
|
||||
{% endif %}
|
||||
|
||||
<h4 class="system-status-general-info__sub-item-title">{{ 'System'|t }}</h4>{{ database_system.value }}
|
||||
{% if database_system.description %}
|
||||
<div class="description">{{ database_system.description }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,50 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override to display status report.
|
||||
*
|
||||
* - grouped_requirements: Contains grouped requirements.
|
||||
* Each group contains:
|
||||
* - title: The title of the group.
|
||||
* - type: The severity of the group.
|
||||
* - items: The requirement instances.
|
||||
* Each requirement item 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.
|
||||
*/
|
||||
#}
|
||||
{{ attach_library('core/drupal.collapse') }}
|
||||
{{ attach_library('mediteran/drupal.responsive-detail') }}
|
||||
|
||||
<div class="system-status-report">
|
||||
{% for group in grouped_requirements %}
|
||||
<div class="system-status-report__requirements-group">
|
||||
<h3 id="{{ group.type }}">{{ group.title }}</h3>
|
||||
{% for requirement in group.items %}
|
||||
<details class="system-status-report__entry system-status-report__entry--{{ group.type }} color-{{ group.type }}" open>
|
||||
{%
|
||||
set summary_classes = [
|
||||
'system-status-report__status-title',
|
||||
group.type in ['warning', 'error'] ? 'system-status-report__status-icon system-status-report__status-icon--' ~ group.type
|
||||
]
|
||||
%}
|
||||
<summary{{ create_attribute({'class': summary_classes}) }} role="button">
|
||||
{% if requirement.severity_title %}
|
||||
<span class="visually-hidden">{{ requirement.severity_title }}</span>
|
||||
{% endif %}
|
||||
{{ requirement.title }}
|
||||
</summary>
|
||||
<div class="system-status-report__entry__value">
|
||||
{{ requirement.value }}
|
||||
{% if requirement.description %}
|
||||
<div class="description">{{ requirement.description }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</details>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
@@ -0,0 +1,28 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override for the status report page.
|
||||
*
|
||||
* Available variables:
|
||||
* - counters: The list of counter elements.
|
||||
* - general_info: A render array to create general info element.
|
||||
* - requirements: A render array to create requirements table.
|
||||
*
|
||||
* @see template_preprocess_status_report()
|
||||
*/
|
||||
#}
|
||||
{% if counters|length == 3 %}
|
||||
{% set element_width_class = ' system-status-report-counters__item--third-width' %}
|
||||
{% elseif counters|length == 2 %}
|
||||
{% set element_width_class = ' system-status-report-counters__item--half-width' %}
|
||||
{% endif %}
|
||||
<div class="system-status-report-counters">
|
||||
{% for counter in counters %}
|
||||
<div class="system-status-report-counters__item{{ element_width_class }}">
|
||||
{{ counter }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{{ general_info }}
|
||||
{{ requirements }}
|
||||
Reference in New Issue
Block a user