From f9e03f02f5907064bbcde3a874d34c4a19f06089 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 9 Sep 2016 09:32:16 +0100 Subject: [PATCH 1/1] Display different colors on the dependency graph --- showdependencygraph.cgi | 14 +++++++++++++- template/en/default/bug/dependency-graph.html.tmpl | 6 +++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index 7b2d2f5..eb51e11 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -215,7 +215,19 @@ foreach my $k (@bug_ids) { } if (is_open_state($stat)) { - push(@params, "color=green"); + if ($stat eq 'Needs Signoff') { + push(@params, "color=orange"); + } elsif ($stat eq 'Signed off') { + push(@params, "color=yellow"); + } elsif ($stat eq 'Passed QA') { + push(@params, "color=blue"); + } elsif ($stat eq 'Failed QA' or $stat eq 'Does not apply') { + push(@params, "color=red"); + } elsif ($stat eq 'In Discussion') { + push(@params, "color=brown"); + } else { + push(@params, "color=green"); + } } if (@params) { diff --git a/template/en/default/bug/dependency-graph.html.tmpl b/template/en/default/bug/dependency-graph.html.tmpl index 69afa2d..80bff68 100644 --- a/template/en/default/bug/dependency-graph.html.tmpl +++ b/template/en/default/bug/dependency-graph.html.tmpl @@ -35,7 +35,11 @@ [% image_map %]

- Green circles represent open [% terms.bugs %]. + Orange circles represent Needs Signoff [% terms.bugs %]. + Yellow circles represent Signed Off [% terms.bugs %]. + Blue circles represent Passed QA [% terms.bugs %]. + Red circles represent Failed QA or Does not apply [% terms.bugs %]. + Brown circles represent In discussion [% terms.bugs %].

[% IF image_map %] -- 2.1.4