Bugzilla – Attachment 95250 Details for
Bug 23672
Dependency graph colours missing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[5.0.3] Display different colors on the dependency graph
0001-Display-different-colors-on-the-dependency-graph.patch (text/plain), 2.08 KB, created by
Jonathan Druart
on 2019-11-11 09:03:47 UTC
(
hide
)
Description:
[5.0.3] Display different colors on the dependency graph
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-11-11 09:03:47 UTC
Size:
2.08 KB
patch
obsolete
>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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23672
: 95250 |
95416