update-version.html.twig in Composer Deploy 8
Theme override 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/update-version.html.twigView source
- {#
- /**
- * @file
- * Theme override 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.
- */
- #}
- <div class="{{ attributes.class }} project-update__version"{{ attributes|without('class') }}>
- <div class="clearfix">
- <div class="project-update__version-title layout-column layout-column--quarter">{{ title }}</div>
- <div class="project-update__version-details layout-column layout-column--quarter">
- <a href="{{ version.release_link }}">{{ version.version }}</a>
- <span class="project-update__version-date">({{ version.date|date('Y-M-d') }})</span>
- </div>
- <div class="layout-column layout-column--half">
- <ul class="project-update__version-links">
- <li class="project-update__download-link">
- <a href="{{ version.download_link }}">{{ 'Download'|t }}</a>
- </li>
- <li class="project-update__release-notes-link">
- <a href="{{ version.release_link }}">{{ 'Release notes'|t }}</a>
- </li>
- {% if core_compatibility_details %}
- <li class="project-update__compatibility-details">
- {{ core_compatibility_details }}
- </li>
- {% endif %}
- {% if version.diff_link %}
- <li class="project-update__diff-link">
- <a href="{{ version.diff_link }}">{{ 'Diff'|t }}</a>
- </li>
- {% endif %}
- </ul>
- </div>
- </div>
- </div>