Bugzilla – Attachment 95416 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.6] Display different colors on the dependency graph
0001-Display-different-colors-on-the-dependency-graph.patch (text/plain), 2.01 KB, created by
Jonathan Druart
on 2019-11-14 10:38:57 UTC
(
hide
)
Description:
[5.0.6] Display different colors on the dependency graph
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-11-14 10:38:57 UTC
Size:
2.01 KB
patch
obsolete
>From 00843c215852e979259cd68b268e74e064f45f56 Mon Sep 17 00:00:00 2001 >From: Your Name <you@example.com> >Date: Thu, 14 Nov 2019 11:36:59 +0100 >Subject: [PATCH 1/1] Display different colors on the dependency graph > >Koha bug 23672 >--- > 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 666a662..475228f 100755 >--- a/showdependencygraph.cgi >+++ b/showdependencygraph.cgi >@@ -226,7 +226,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