Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From f9e03f02f5907064bbcde3a874d34c4a19f06089 Mon Sep 17 00:00:00 2001
- From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
- 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 %]
- <p>
- - Green circles represent open [% terms.bugs %].
- + Orange circles represent <span style="color:orange">Needs Signoff</span> [% terms.bugs %].
- + Yellow circles represent <span style="color:yellow">Signed Off</span> [% terms.bugs %].
- + Blue circles represent <span style="color:blue">Passed QA</span> [% terms.bugs %].
- + Red circles represent <span style="color:red">Failed QA or Does not apply</span> [% terms.bugs %].
- + Brown circles represent <span style="color:brown">In discussion</span> [% terms.bugs %].
- </p>
- [% IF image_map %]
- --
- 2.1.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement