From 5716e69767c418372d4fd6cd8227f39ca8563e38 Mon Sep 17 00:00:00 2001 From: Kevin Quick Date: Sat, 15 Dec 2018 11:58:26 -0800 Subject: [PATCH 1/4] Add job status headers (web useability for red/green colorblindness). --- src/root/common.tt | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/src/root/common.tt b/src/root/common.tt index 47b26e86..f9f725d9 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -414,7 +414,18 @@ BLOCK renderEvals %] [% END %] Date Input changes - Success + + Jobs
+ Succeeded + + + Failed + + + Queued + + + Δ @@ -440,9 +451,13 @@ BLOCK renderEvals %] [% e.nrSucceeded %] + + [% IF e.nrFailed > 0 %] [% e.nrFailed %] [% END %] + + [% IF e.nrScheduled > 0 %] [% e.nrScheduled %] [% END %] @@ -509,7 +524,19 @@ BLOCK renderJobsetOverview %] Name Description Last evaluated - Success + + Jobs + + + Succeeded + + + Failed + + + Queued + + @@ -547,9 +574,13 @@ BLOCK renderJobsetOverview %] [% IF j.get_column('nrsucceeded') > 0 %] [% j.get_column('nrsucceeded') %] [% END %] + + [% IF j.get_column('nrfailed') > 0 %] [% j.get_column('nrfailed') %] [% END %] + + [% IF j.get_column('nrscheduled') > 0 %] [% j.get_column('nrscheduled') %] [% END %] From 0e7593a4a1c7de8d103143446f1078ef0ad7046e Mon Sep 17 00:00:00 2001 From: Kevin Quick Date: Sat, 15 Dec 2018 21:25:41 -0800 Subject: [PATCH 2/4] Remove blank lines, consistent attribute quoting, use svg for delta header, column sizes. --- src/root/common.tt | 16 ++++++++-------- src/root/static/images/delta.svg | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 src/root/static/images/delta.svg diff --git a/src/root/common.tt b/src/root/common.tt index f9f725d9..963c806d 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -414,18 +414,19 @@ BLOCK renderEvals %] [% END %] Date Input changes - + Jobs
Succeeded - + Failed - + Queued - - Δ + + Delta + @@ -452,12 +453,12 @@ BLOCK renderEvals %] [% e.nrSucceeded %] - + [% IF e.nrFailed > 0 %] [% e.nrFailed %] [% END %] - + [% IF e.nrScheduled > 0 %] [% e.nrScheduled %] [% END %] @@ -535,7 +536,6 @@ BLOCK renderJobsetOverview %] Queued - diff --git a/src/root/static/images/delta.svg b/src/root/static/images/delta.svg new file mode 100644 index 00000000..408b0d0f --- /dev/null +++ b/src/root/static/images/delta.svg @@ -0,0 +1 @@ + From dfce2ad69a72c4c23aa423869fbe01562d7a3a4e Mon Sep 17 00:00:00 2001 From: Kevin Quick Date: Sun, 16 Dec 2018 22:26:44 -0800 Subject: [PATCH 3/4] Use rowspans to align Jobs reference in evaluations rendering --- src/root/common.tt | 24 +++++++++++++----------- src/root/static/css/hydra.css | 5 +++++ 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/root/common.tt b/src/root/common.tt index 963c806d..6ebeb217 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -408,25 +408,27 @@ BLOCK renderEvals %] - + [% IF !jobset && !build %] - + [% END %] - - - + + + + + + - - - diff --git a/src/root/static/css/hydra.css b/src/root/static/css/hydra.css index a871485e..d2c09bc4 100644 --- a/src/root/static/css/hydra.css +++ b/src/root/static/css/hydra.css @@ -142,3 +142,8 @@ td.step-status span.warn { color: #aaaa00; font-weight: bold; } + +/* Assumes borders are never desired in multi-row table heads */ +.table thead th { + border-top: 0; +} From 8315e20ab502a6aa1b94010d7223a10060f93ca8 Mon Sep 17 00:00:00 2001 From: Kevin Quick Date: Sun, 16 Dec 2018 22:34:22 -0800 Subject: [PATCH 4/4] Lighten delta mark to blend better with other column headers. --- src/root/static/images/delta.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/root/static/images/delta.svg b/src/root/static/images/delta.svg index 408b0d0f..37161bec 100644 --- a/src/root/static/images/delta.svg +++ b/src/root/static/images/delta.svg @@ -1 +1 @@ - +
##JobsetJobsetDateInput changes - Jobs
+
DateInput changesJobs + Delta +
Succeeded + Failed + Queued - Delta -