You are here

update-version.html.twig in Zircon Profile 8.0

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.

File

core/modules/update/templates/update-version.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the version display of a project.
  5. *
  6. * Available variables:
  7. * - attributes: HTML attributes suitable for a container element.
  8. * - title: The title of the project.
  9. * - version: A list of data about the latest released version, containing:
  10. * - version: The version number.
  11. * - date: The date of the release.
  12. * - download_link: The URL for the downloadable file.
  13. * - release_link: The URL for the release notes.
  14. *
  15. * @see template_preprocess_update_version()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. <div class="{{ attributes.class }} project-update__version"{{ attributes|without('class') }}>
  21. <div class="clearfix">
  22. <div class="project-update__version-title layout-column layout-column--quarter">{{ title }}</div>
  23. <div class="project-update__version-details layout-column layout-column--quarter">
  24. <a href="{{ version.release_link }}">{{ version.version }}</a>
  25. <span class="project-update__version-date">({{ version.date|date('Y-M-d') }})</span>
  26. </div>
  27. <div class="layout-column layout-column--half">
  28. <ul class="project-update__version-links">
  29. <li class="project-update__download-link">
  30. <a href="{{ version.download_link }}">{{ 'Download'|t }}</a>
  31. </li>
  32. <li class="project-update__release-notes-link">
  33. <a href="{{ version.release_link }}">{{ 'Release notes'|t }}</a>
  34. </li>
  35. </ul>
  36. </div>
  37. </div>
  38. </div>

Related topics