Module: check_mk
Branch: master
Commit: 796c710e3a42c082dfe35fd7958908404c398b14
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=796c710e3a42c0…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 24 10:42:38 2017 +0100
table: Fixed setting odd/even css classes correctly
Change-Id: Ie9e63ab3b73f8ff7cc1b74902110722a9020a4cb
---
web/htdocs/table.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/table.py b/web/htdocs/table.py
index 387cdc2..6b3105a 100644
--- a/web/htdocs/table.py
+++ b/web/htdocs/table.py
@@ -297,7 +297,7 @@ def _write_table(table, rows, actions_enabled, actions_visible,
search_term):
continue
odd = "even" if odd == "odd" else "odd"
- html.open_tr(class_=["data", odd, state, css if css else None])
+ html.open_tr(class_=["data", "odd%d" % state, css if css else
None])
for cell_content, css_classes, colspan in row:
html.open_td(class_=css_classes if css_classes else None, colspan=colspan if
colspan else None)
html.write(cell_content)