diff --git a/core/modules/update/templates/update-version.html.twig b/core/modules/update/templates/update-version.html.twig new file mode 100644 index 0000000..d1a8063 --- /dev/null +++ b/core/modules/update/templates/update-version.html.twig @@ -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 + */ +#} +
{{ title }} | ++ {{ version.version }} + ({{ version.date|date('Y-M-d') }}) + | +
+
|
+
' . $tag . " | \n"; - $output .= ''; - $output .= l($version['version'], $version['release_link']); - $output .= ' (' . format_date($version['date'], 'custom', 'Y-M-d') . ')'; - $output .= " | \n"; - $output .= ''; - $links = array(); - $links['update-download'] = array( - 'title' => t('Download'), - 'href' => $version['download_link'], - ); - $links['update-release-notes'] = array( - 'title' => t('Release notes'), - 'href' => $version['release_link'], - ); - $links__update_version = array( - '#theme' => 'links__update_version', - '#links' => $links, - ); - $output .= drupal_render($links__update_version); - $output .= ' | '; - $output .= '