Commit 2e71fb55 authored by Jérome Perrin's avatar Jérome Perrin

use css instead of adding style inline


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34133 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eb761d8d
......@@ -313,12 +313,13 @@ Following tests failed:
if error_result_re.match(e):
detail += e
detail = image_re.sub('', detail)
detail = detail.replace('<tr class="title status_failed"',
'<tr class="title status_failed" style="background-color:red"')
detail = detail.replace('<tr class="status_failed"',
'<tr class="status_failed" style="background-color:red"')
if detail:
detail = '<html><body>%s</body></html>' % detail
detail = '''<html>
<head>
<style type="text/css">tr.status_failed { background-color:red };</style>
</head>
<body>%s</body>
</html>''' % detail
status = (not failures)
if self.send_mail:
sendMail(subject=subject,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment