diff --git a/core/modules/update/css/update.admin.theme.css b/core/modules/update/css/update.admin.theme.css index 19b4af2a25..3891e864fc 100644 --- a/core/modules/update/css/update.admin.theme.css +++ b/core/modules/update/css/update.admin.theme.css @@ -8,12 +8,10 @@ font-size: 110%; } .project-update__status { - text-align: right; /* LTR */ float: right; /* LTR */ font-size: 110%; } [dir="rtl"] .project-update__status { - text-align: left; float: left; } .project-update__status--not-supported { @@ -34,9 +32,6 @@ padding-left: 0; padding-right: 0.5em; } -.project-update__status-icon img { - vertical-align: top; -} .project-update__details { padding: 1em 1em 0.25em 1em; } diff --git a/core/modules/update/templates/update-report.html.twig b/core/modules/update/templates/update-report.html.twig index 25ccc45238..ae121cc3b4 100644 --- a/core/modules/update/templates/update-report.html.twig +++ b/core/modules/update/templates/update-report.html.twig @@ -19,7 +19,7 @@ {% for project_type in project_types %}

{{ project_type.label }}

- {{ project_type.content }} + {{ project_type.table }} {% else %}

{{ no_updates_message }}

{% endfor %} diff --git a/core/modules/update/templates/update-version.html.twig b/core/modules/update/templates/update-version.html.twig index 95ed1bd5a9..9a683e05bb 100644 --- a/core/modules/update/templates/update-version.html.twig +++ b/core/modules/update/templates/update-version.html.twig @@ -11,7 +11,8 @@ * - date: The date of the release. * - download_link: The URL for the downloadable file. * - release_link: The URL for the release notes. - * - type: The type of the version, possible values are 'recommended', 'security', 'latest', 'dev', 'also', 'installed'. + * - version_type: The type of the version, possible values are 'recommended', 'security', 'latest', 'dev', 'also', + * 'installed'. * * @ingroup themeable */ @@ -28,7 +29,7 @@ {% endtrans %} {% endif %} - {% if type != 'installed' %} + {% if version_type != 'installed' %}
+ +
+ {%- if url -%} + {{ title }} + {%- else -%} + {{ title }} + {%- endif %} +
+ +{% + set extra_classes = [ + project.status == constant('UPDATE_NOT_SECURE') ? 'project-not-secure', + project.status == constant('UPDATE_REVOKED') ? 'project-revoked', + project.status == constant('UPDATE_NOT_SUPPORTED') ? 'project-not-supported', + ] +%} +
+ {% if extras %} +
+ {% for extra in extras %} + + {{ extra.label }}: {{ extra.data }} +
+ {% endfor %} +
+ {% endif %} + {% set includes = includes|join(', ') %} + + +{% if versions %} + {% for version in versions %} + {{ version }} + {% endfor %} +{% endif %} + +{% if disabled %} + {{ 'Includes:'|t }} + +{% else %} + {% trans %} + Includes: {{ includes|placeholder }} + {% endtrans %} +{% endif %} diff --git a/core/themes/seven/templates/update-version.html.twig b/core/themes/seven/templates/update-version.html.twig new file mode 100644 index 0000000000..9a683e05bb --- /dev/null +++ b/core/themes/seven/templates/update-version.html.twig @@ -0,0 +1,42 @@ +{# +/** + * @file + * Default theme implementation for the version display of a project. + * + * Available variables: + * - attributes: HTML attributes suitable for a container element. + * - title: The title of the project. + * - version: A list of data about the latest released version, containing: + * - version: The version number. + * - date: The date of the release. + * - download_link: The URL for the downloadable file. + * - release_link: The URL for the release notes. + * - version_type: The type of the version, possible values are 'recommended', 'security', 'latest', 'dev', 'also', + * 'installed'. + * + * @ingroup themeable + */ +#} +
+
+
{{ title }}
+
+ {{ version.version }} + ({{ version.date|date('Y-M-d') }}) + {% if version.security_covered %} + {% trans %} + Covered by Drupal’s security advisory policy + {% endtrans %} + {% endif %} +
+ {% if version_type != 'installed' %} +
+ +
+ {% endif %} +
+
diff --git a/core/themes/stable/css/update/update.admin.theme.css b/core/themes/stable/css/update/update.admin.theme.css index 19b4af2a25..abf0a88243 100644 --- a/core/themes/stable/css/update/update.admin.theme.css +++ b/core/themes/stable/css/update/update.admin.theme.css @@ -8,12 +8,10 @@ font-size: 110%; } .project-update__status { - text-align: right; /* LTR */ float: right; /* LTR */ font-size: 110%; } [dir="rtl"] .project-update__status { - text-align: left; float: left; } .project-update__status--not-supported { @@ -34,19 +32,12 @@ padding-left: 0; padding-right: 0.5em; } -.project-update__status-icon img { - vertical-align: top; -} .project-update__details { padding: 1em 1em 0.25em 1em; } .project-update__version { - border-bottom: 1px solid #bfbfbf; - padding: 0.5em 0; -} -.project-update__version--installed { - border-bottom: none; + padding: 1em 0; } .project-update__version-date { white-space: nowrap; @@ -60,12 +51,13 @@ } .project-update__version-links { text-align: right; /* LTR */ + padding-right: 1em; /* LTR */ list-style-type: none; } [dir="rtl"] .project-update__version-links { text-align: left; + padding-left: 1em; } -.project-update__version--recommended-strong .project-update__version-title, -.version-security .project-update__version-title { +.project-update__version--recommended-strong .project-update__version-title { font-weight: bold; } diff --git a/core/themes/stable/templates/admin/update-project-status.html.twig b/core/themes/stable/templates/admin/update-project-status.html.twig index 2c3308afd0..5a6d2ecea7 100644 --- a/core/themes/stable/templates/admin/update-project-status.html.twig +++ b/core/themes/stable/templates/admin/update-project-status.html.twig @@ -45,14 +45,24 @@ -
+
{%- if url -%} {{ title }} {%- else -%} {{ title }} {%- endif %} + {{ existing_version }} + {% if install_type == 'dev' and datestamp %} + ({{ datestamp }}) + {% endif %}
+{% if versions %} + {% for version in versions %} + {{ version }} + {% endfor %} +{% endif %} + {% set extra_classes = [ project.status == constant('UPDATE_NOT_SECURE') ? 'project-not-secure', @@ -71,31 +81,24 @@
{% endif %} {% set includes = includes|join(', ') %} + {% if disabled %} + {{ 'Includes:'|t }} + + {% else %} + {% trans %} + Includes: {{ includes|placeholder }} + {% endtrans %} + {% endif %} - -{% if versions %} - {% for version in versions %} - {{ version }} - {% endfor %} -{% endif %} - -{% if disabled %} - {{ 'Includes:'|t }} - -{% else %} - {% trans %} - Includes: {{ includes|placeholder }} - {% endtrans %} -{% endif %} diff --git a/core/themes/stable/templates/admin/update-report.html.twig b/core/themes/stable/templates/admin/update-report.html.twig index 648d31ea98..9efebc06ae 100644 --- a/core/themes/stable/templates/admin/update-report.html.twig +++ b/core/themes/stable/templates/admin/update-report.html.twig @@ -17,7 +17,7 @@ {% for project_type in project_types %}

{{ project_type.label }}

- {{ project_type.content }} + {{ project_type.table }} {% else %}

{{ no_updates_message }}

{% endfor %} diff --git a/core/themes/stable/templates/admin/update-version.html.twig b/core/themes/stable/templates/admin/update-version.html.twig index d8c2c61821..6c23584a68 100644 --- a/core/themes/stable/templates/admin/update-version.html.twig +++ b/core/themes/stable/templates/admin/update-version.html.twig @@ -11,29 +11,24 @@ * - date: The date of the release. * - download_link: The URL for the downloadable file. * - release_link: The URL for the release notes. - * - type: The type of the version, possible values are 'recommended', 'security', 'latest', 'dev', 'also', 'installed'. */ #}
-
{{ title }}
-
+
{{ title }}
+
{{ version.version }} ({{ version.date|date('Y-M-d') }}) - {% if version.security_covered %} - {% trans %} - Covered by Drupal’s security advisory policy - {% endtrans %} - {% endif %}
- {% if type != 'installed' %} -
- -
- {% endif %} +