Merge "Display zuul_version in zuul status page"

This commit is contained in:
Jenkins 2014-02-05 20:34:31 +00:00 committed by Gerrit Code Review
commit 41c81bea6d
1 changed files with 6 additions and 1 deletions

View File

@ -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 = $('<div class="row"></div>');
$zuulVersion = $('<p>Zuul version: <span id="zuul-version-span"></span></p>');
$container = $('#zuul-container').append($msgWrap, $indicator, $queueInfo, $pipelines);
$container = $('#zuul-container').append($msgWrap, $indicator, $queueInfo, $pipelines, $zuulVersion);
zuul.schedule();