You are here

hacked-project-summary.html.twig in Hacked! 8.2

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

templates/hacked-project-summary.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. * @ingroup themeable
  16. */
  17. #}
  18. <div class="{{ attributes.class }} project-update__version"{{ attributes|without('class') }}>
  19. <div class="clearfix">
  20. <div class="project-update__version-title layout-column layout-column--three-quarter">{{ changes }}</div>
  21. <div class="layout-column layout-column--quarter">
  22. <ul class="project-update__version-links">
  23. <li class="project-update__download-link">
  24. <a href="{{ link }}">{{ 'View details of changes'|t }}</a>
  25. </li>
  26. </ul>
  27. </div>
  28. </div>
  29. </div>