Add css class corresponding to check status in summary tables
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 20 Jun 2013 10:46:42 +0200
changeset 1472 bc28ed883351
parent 1471 92c45a03e06d
child 1473 4a938c54cc70
Add css class corresponding to check status in summary tables
views/testexecution.py
--- a/views/testexecution.py	Fri Jan 24 11:39:31 2014 +0100
+++ b/views/testexecution.py	Thu Jun 20 10:46:42 2013 +0200
@@ -266,7 +266,8 @@
             content = u'%s (%s)' % (self._cw._(check.name), check.status)
             url = check.absolute_url()
             title = self._cw._('see execution report for %s') % check.name
-            checks.append(tags.a(content, href=url, title=title))
+            checks.append(tags.a(content, href=url, title=title,
+                                 klass=('status_%s' % check.status)))
         if checks:
             self.w(u', '.join(checks))