From 03b232c1789c042a35081e56f46de3b3ad7d5423 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 23 Jan 2014 16:18:49 -0800 Subject: [PATCH] Reflect zuul window in status page. Add a grey blob to indicate changes outside of the zuul dependent pipeline queue windows. Change-Id: I5cb254381bb51832ba114331082ac5c1d88d1b08 --- modules/openstack_project/files/zuul/grey.png | Bin 0 -> 364 bytes modules/openstack_project/files/zuul/status.js | 4 +++- modules/openstack_project/manifests/status.pp | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 modules/openstack_project/files/zuul/grey.png diff --git a/modules/openstack_project/files/zuul/grey.png b/modules/openstack_project/files/zuul/grey.png new file mode 100644 index 0000000000000000000000000000000000000000..7c1815d89b7fed9901aff6bc41474ac8e6891a16 GIT binary patch literal 364 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPggKMhONU`P>PIj{$`wOI#yLobz*Y zQ}ap~oQqNuOHxx5$}>wc6x=<11Hv2m#DR*Ad%8G=Se#xvd1LPp1p(LlO5qNSDk>rl zM!6T7UKeq1aWrC`FhRg-0c(81-IJHrz1#Cu4#_(Qjt1m7Y|Ka?rph?ubq;0;#l*VtKsLp8grh2Y}MyATvhMu z=l$&p;@Vr@v&yJ@RZ>*;<)&*=X+4Iz63KJ?|F9&loy!-UZFui@X5)7`;p91DM'; if (i == change['_tree_index']) { - if (change['failing_reasons'] && change['failing_reasons'].length > 0) { + if (change['active'] != true) { + html += ''; + } 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/)) { diff --git a/modules/openstack_project/manifests/status.pp b/modules/openstack_project/manifests/status.pp index 75ca3c755d..39765bffd2 100644 --- a/modules/openstack_project/manifests/status.pp +++ b/modules/openstack_project/manifests/status.pp @@ -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',