Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
38
core/modules/update/templates/update-version.html.twig
Normal file
38
core/modules/update/templates/update-version.html.twig
Normal file
|
@ -0,0 +1,38 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* 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.
|
||||
*
|
||||
* @see template_preprocess_update_version()
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
<div class="{{ attributes.class }} project-update__version"{{ attributes|without('class') }}>
|
||||
<div class="clearfix">
|
||||
<div class="project-update__version-title layout-column quarter">{{ title }}</div>
|
||||
<div class="project-update__version-details 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 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>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in a new issue