From c2a0baa10ab56daa11bd83a3ee3595b640b8e518 Mon Sep 17 00:00:00 2001 From: Sergey Lukjanov Date: Fri, 27 Dec 2013 01:35:52 +0400 Subject: [PATCH] Display zuul version from zuul/status * it could be useful to determine when zuul updated * it requires Id451f15538258ab2dec8e3e8f000cff4a8b7b20d to display version Change-Id: Ic8664927b3b5d713f9ae84bffe0a7c3455eee4fa --- modules/openstack_project/files/zuul/status.html | 11 +++++++++++ modules/openstack_project/files/zuul/status.js | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/modules/openstack_project/files/zuul/status.html b/modules/openstack_project/files/zuul/status.html index ad3aeb62bd..b3c9a8f2b6 100644 --- a/modules/openstack_project/files/zuul/status.html +++ b/modules/openstack_project/files/zuul/status.html @@ -123,6 +123,9 @@ td.tree { #graph-container img:first-of-type { margin-left: 0px; } +#zuul_info_container { + margin-top: 12px; +} a:link { color: #204A87; } @@ -336,6 +339,14 @@ $("#graph-container").append($(new Image()).addClass('graph').graphite({ +
+

Zuul info

+

+ Zuul version: + +

+
+ diff --git a/modules/openstack_project/files/zuul/status.js b/modules/openstack_project/files/zuul/status.js index 2602dcc2fb..f86ed8b112 100644 --- a/modules/openstack_project/files/zuul/status.js +++ b/modules/openstack_project/files/zuul/status.js @@ -382,10 +382,18 @@ function clean_changes_lists() { window.zuul_collapsed_exceptions = new_collapsed_exceptions; } +function update_zuul_info(data) { + if ('zuul_version' in data) { + $('#zuul-version').text(data['zuul_version']); + } +} + function update() { var html = ''; $.getJSON('http://zuul.openstack.org/status.json', function(data) { + update_zuul_info(data); + if ('message' in data) { $("#message").attr('class', 'alertbox'); $("#message").html(data['message']); @@ -407,7 +415,6 @@ function update() { data['trigger_event_queue']['length']); $("#result_event_queue_length").html( data['result_event_queue']['length']); - }); clean_changes_lists();