diff --git a/core/modules/update/templates/update-report.html.twig b/core/modules/update/templates/update-report.html.twig index 8e97022..f5f7d57 100644 --- a/core/modules/update/templates/update-report.html.twig +++ b/core/modules/update/templates/update-report.html.twig @@ -4,6 +4,7 @@ * Default theme implementation for the project status report. * * Available variables: + * - update_last_check: The last date/time update command ran. * - project_types: A list of product types. * - label: Project type label. * - projects: Data about each project's status. @@ -30,6 +31,7 @@ * @ingroup themeable */ #} +

{{ update_last_check }}

{% for project_type in project_types %}

{{ project_type.label }}

diff --git a/core/modules/update/update.report.inc b/core/modules/update/update.report.inc index 973d4a1..a42cc8c 100644 --- a/core/modules/update/update.report.inc +++ b/core/modules/update/update.report.inc @@ -56,6 +56,9 @@ function template_preprocess_update_report(&$variables) { $data = $variables['data']; $rows = array(); + $last = state()->get('update.last_check') ?: 0; + $variables['update_last_check'] = theme('update_last_check', array('last' => $last)); + $notification_level = config('update.settings')->get('notification.threshold'); // Create an array of status values keyed by module or theme name, since