From: Michael Andreen Date: Tue, 11 Nov 2008 21:02:23 +0000 (+0100) Subject: Better color-coding on covop page X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=commitdiff_plain;h=22cfc88a54f687427a45b3f9e1c2cb104033028d Better color-coding on covop page --- 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;
[% t.coords %][% t.metal %] [% t.crystal %] [% t.eonium %] [% t.gov %] [% t.minalert %] - [% t.maxalert %][% t.distorters %] [% t.maxreshack %] [% t.lastcovop %]