c21c4f0ba46fe24cf8300891ecd5f153bf3d8efc
[yaffs-website] / update-version.html.twig
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--quarter">{{ title }}</div>
21     <div class="project-update__version-details layout-column layout-column--quarter">
22       <a href="{{ version.release_link }}">{{ version.version }}</a>
23       <span class="project-update__version-date">({{ version.date|date('Y-M-d') }})</span>
24     </div>
25     <div class="layout-column layout-column--half">
26       <ul class="project-update__version-links">
27         <li class="project-update__download-link">
28           <a href="{{ version.download_link }}">{{ 'Download'|t }}</a>
29         </li>
30         <li class="project-update__release-notes-link">
31           <a href="{{ version.release_link }}">{{ 'Release notes'|t }}</a>
32         </li>
33       </ul>
34     </div>
35   </div>
36 </div>