Bug#742329: use softer colours for architecture qualification page
On Sat, March 22, 2014 16:28, Julien Cristau wrote:
> looks like that if col=="red" is now broken?
Indeed, see fixed patch attached.
Thijs
>From 8f84a1be4a9c49782ea8f736ef315508591e1608 Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@debian.org>
Date: Sat, 22 Mar 2014 16:47:16 +0100
Subject: [PATCH] Use less hard colours to reduce eyebleedage.
---
www/jessie/arch_qualify.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/www/jessie/arch_qualify.py b/www/jessie/arch_qualify.py
index 0e56ead..f872f3c 100644
--- a/www/jessie/arch_qualify.py
+++ b/www/jessie/arch_qualify.py
@@ -18,9 +18,9 @@ from collections import OrderedDict
########################################################### formatting helpers
-def FAIL(value): return ("red",value)
-def WARN(value): return ("yellow",value)
-def PASS(value): return ("lime",value)
+def FAIL(value): return ("#e87272",value)
+def WARN(value): return ("#ccff66",value)
+def PASS(value): return ("#60e760",value)
def c_truth(value):
if value == True or value == "yes":
@@ -152,10 +152,10 @@ def dump_table(info,waivers):
w = waivers.get(arch,{}).get(c,None)
if w:
- col="cyan"
+ col="#00cccc"
contents += ' <a href="%s">(w)</a>' % (w)
- if col=="red":
+ if col=="#e87272":
candidacy_at_risk[arch]=True
print '<td style="background-color:%s">%s</td>' % (col,contents)
--
1.7.10.4
Reply to: