summaryrefslogtreecommitdiff
path: root/addons/base_module_quality/structure_test/structure_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/base_module_quality/structure_test/structure_test.py')
-rw-r--r--addons/base_module_quality/structure_test/structure_test.py20
1 files changed, 18 insertions, 2 deletions
diff --git a/addons/base_module_quality/structure_test/structure_test.py b/addons/base_module_quality/structure_test/structure_test.py
index e89c68cdefb..5c43d3a0e10 100644
--- a/addons/base_module_quality/structure_test/structure_test.py
+++ b/addons/base_module_quality/structure_test/structure_test.py
@@ -170,10 +170,26 @@ This test checks if the module satisfy tiny structure
return score
def get_result_details(self, dict_struct):
- str_html = '''<html><head></head><body><table>'''
- header = ('<tr><th>%s</th><th>%s</th></tr>', [_('File Name'), _('Feedback about structure of module')])
+ str_html = '''<html><head>
+ <style>
+ .bstyle
+ {
+ border-width:2px;
+ border-style:dashed;
+ border-color: gray;
+ }
+ .btstyle
+ {
+ border-width:2px;
+ border-style:solid;
+ border-color: gray;
+ }
+ }
+ </style></head><body><table class="bstyle">'''
+ header = ('<tr><th class="btstyle">%s</th><th class="btstyle">%s</th></tr>', [_('File Name'), _('Feedback about structure of module')])
if not self.error:
res = str_html + self.format_html_table(header, data_list=dict_struct) + '</table></body></html>'
+ res = res.replace('''<td''', '''<td class="btstyle" ''')
return res
return ""