From 22cfc88a54f687427a45b3f9e1c2cb104033028d Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Tue, 11 Nov 2008 22:02:23 +0100 Subject: [PATCH] Better color-coding on covop page --- root/src/covop/index.tt2 | 16 ++++++++++++++-- root/static/default.css | 10 +++++++++- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/root/src/covop/index.tt2 b/root/src/covop/index.tt2 index 3fbf25a..542f318 100644 --- a/root/src/covop/index.tt2 +++ b/root/src/covop/index.tt2 @@ -1,3 +1,15 @@ +[%- BLOCK style -%] + [%- IF not tick -%] + class="old" + [%- ELSIF TICK - tick > 24 -%] + class="old" + [%- ELSIF TICK - tick > 12 -%] + class="semiold" + [%- ELSIF TICK - tick < 6 -%] + class="new" + [%- END -%] +[%- END -%] + [% META title = 'Covert operations' %] @@ -10,13 +22,13 @@ [% FOR t IN targets %] - 6 %] class="OLD"[%END%]>[% t.pstick %] + [% t.pstick %] - 6 %] class="OLD"[%END%]>[% t.dstick %] + [% t.dstick %] diff --git a/root/static/default.css b/root/static/default.css index 9e79ac1..c6a364b 100644 --- a/root/static/default.css +++ b/root/static/default.css @@ -165,10 +165,18 @@ td.NAP a{ background: blue; } -td.OLD{ +td.old{ background: red; color: black; } +td.semiold{ + background: yellow; + color: black; +} +td.new{ + background: green; + color: black; +} table.old{ border: outset 1pt; border-collapse: separate; -- 2.39.2
[% t.coords %][% t.metal %] [% t.crystal %] [% t.eonium %] [% t.gov %] [% t.minalert %] - [% t.maxalert %][% t.distorters %] [% t.maxreshack %] [% t.lastcovop %]