From 4df0a2294075fdf02c8f10d004fed2985cb20723 Mon Sep 17 00:00:00 2001 From: Sergey Lukjanov Date: Sat, 11 Jan 2014 00:12:47 +0400 Subject: [PATCH] Display last_reconfigured in zuul status page Change-Id: I908e20ca28ec71f765e7078e131e295fad61b09b --- etc/status/public_html/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/status/public_html/app.js b/etc/status/public_html/app.js index 69a94b8299..2f9d3b74ed 100644 --- a/etc/status/public_html/app.js +++ b/etc/status/public_html/app.js @@ -66,6 +66,10 @@ if ('zuul_version' in data) { $('#zuul-version-span').text(data['zuul_version']); } + if ('last_reconfigured' in data) { + var last_reconfigured = new Date(data['last_reconfigured']); + $('#last-reconfigured-span').text(last_reconfigured.toString()); + } $.each(data.pipelines, function (i, pipeline) { html += zuul.format.pipeline(pipeline); @@ -228,8 +232,9 @@ $queueResultsNum = $queueEventsNum.next(); $pipelines = $('
'); $zuulVersion = $('

Zuul version:

'); + $lastReconf = $('

Last reconfigured:

'); - $container = $('#zuul-container').append($msgWrap, $indicator, $queueInfo, $pipelines, $zuulVersion); + $container = $('#zuul-container').append($msgWrap, $indicator, $queueInfo, $pipelines, $zuulVersion, $lastReconf); zuul.schedule();