You are here

update-last-check.html.twig in Drupal 10

Theme override for the last time update data was checked.

Available variables:

  • last: The timestamp that the site was last checked for updates.
  • time: The formatted time since the site last checked for updates.
  • link: A link to check for updates manually.

File

core/themes/stable/templates/admin/update-last-check.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for the last time update data was checked.
  5. *
  6. * Available variables:
  7. * - last: The timestamp that the site was last checked for updates.
  8. * - time: The formatted time since the site last checked for updates.
  9. * - link: A link to check for updates manually.
  10. *
  11. * @see template_preprocess_update_last_check()
  12. */
  13. #}
  14. <p>
  15. {% if last %}
  16. {{ 'Last checked: @time ago'|t({'@time': time}) }}
  17. {% else %}
  18. {{ 'Last checked: never'|t }}
  19. {% endif %}
  20. ({{ link }})
  21. </p>