From df550c543a12eb37c6e981cef5d4c255c68f8d68 Mon Sep 17 00:00:00 2001 From: Sergey Lukjanov Date: Sat, 11 Jan 2014 00:05:16 +0400 Subject: [PATCH] Display zuul_version in zuul status page Change-Id: I81122aaae9f525ceb04a7fbb63cf3111b4770f51 --- 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 8ac61088ae..69a94b8299 100644 --- a/etc/status/public_html/app.js +++ b/etc/status/public_html/app.js @@ -63,6 +63,10 @@ $msgWrap.addClass('zuul-msg-wrap-off'); } + if ('zuul_version' in data) { + $('#zuul-version-span').text(data['zuul_version']); + } + $.each(data.pipelines, function (i, pipeline) { html += zuul.format.pipeline(pipeline); }); @@ -223,8 +227,9 @@ $queueEventsNum = $queueInfo.find('span').eq(0); $queueResultsNum = $queueEventsNum.next(); $pipelines = $('
'); + $zuulVersion = $('

Zuul version:

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