' . t('Failed to get available update data'));
// We should see the output messages from fetching manually.
$this->assertUniqueText(t('Checked available update data for 3 projects.'));
diff --git a/core/modules/update/templates/update-last-check.html.twig b/core/modules/update/templates/update-last-check.html.twig
index ea6a2f2..1e0f9ec 100644
--- a/core/modules/update/templates/update-last-check.html.twig
+++ b/core/modules/update/templates/update-last-check.html.twig
@@ -13,11 +13,11 @@
* @ingroup themeable
*/
#}
-
+
{% if last %}
{{ 'Last checked: @time ago'|t({'@time': time}) }}
{% else %}
{{ 'Last checked: never'|t }}
{% endif %}
- ({{ link }})
+ ({{ link }})
diff --git a/core/modules/update/templates/update-project-status.html.twig b/core/modules/update/templates/update-project-status.html.twig
index 04ab882..960a8bb 100644
--- a/core/modules/update/templates/update-project-status.html.twig
+++ b/core/modules/update/templates/update-project-status.html.twig
@@ -29,25 +29,16 @@
* @ingroup themeable
*/
#}
-{%
- set status_classes = [
- project.status == constant('UPDATE_NOT_SECURE') ? 'security-error',
- project.status == constant('UPDATE_REVOKED') ? 'revoked',
- project.status == constant('UPDATE_NOT_SUPPORTED') ? 'not-supported',
- project.status == constant('UPDATE_NOT_CURRENT') ? 'not-current',
- project.status == constant('UPDATE_CURRENT') ? 'current',
- ]
-%}
-
+
{%- if status.label -%}
- {{ status.label }}
+ {{ status.label }}
{%- else -%}
{{ status.reason }}
{%- endif %}
- {{ status.icon }}
+ {{ status.icon }}
-
+
{%- if url -%}
{{ title }}
{%- else -%}
@@ -55,46 +46,39 @@
{%- endif %}
{{ existing_version }}
{% if install_type == 'dev' and datestamp %}
-
({{ datestamp }})
+
({{ datestamp }})
{% endif %}
{% if versions %}
-
+
{% for version in versions %}
{{ version }}
{% endfor %}
{% 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',
- ]
-%}
-