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