Reflect zuul window in status page.

Add a grey blob to indicate changes outside of the zuul dependent
pipeline queue windows.

Change-Id: I5cb254381bb51832ba114331082ac5c1d88d1b08
This commit is contained in:
Clark Boylan 2014-01-23 16:18:49 -08:00
parent 59ca82770b
commit 03b232c178
3 changed files with 9 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

View File

@ -226,7 +226,9 @@ function format_change(change, change_queue) {
}
html += '<td class="'+cls+'">';
if (i == change['_tree_index']) {
if (change['failing_reasons'] && change['failing_reasons'].length > 0) {
if (change['active'] != true) {
html += '<img src="grey.png" title="Waiting until closer to head of queue to start jobs"/>';
} else if (change['failing_reasons'] && change['failing_reasons'].length > 0) {
var reason = change['failing_reasons'].join(', ');
var image = 'red.png';
if (reason.match(/merge conflict/)) {

View File

@ -186,6 +186,12 @@ class openstack_project::status (
require => File['/srv/static/status/zuul'],
}
file { '/srv/static/status/zuul/grey.png':
ensure => present,
source => 'puppet:///modules/openstack_project/zuul/grey.png',
require => File['/srv/static/status/zuul'],
}
file { '/srv/static/status/zuul/line-angle.png':
ensure => present,
source => 'puppet:///modules/openstack_project/zuul/line-angle.png',