Module: check_mk
Branch: master
Commit: be809db1a58c205cf3328d31d9c176dc7b9c2911
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=be809db1a58c20…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jan 29 16:08:56 2016 +0100
table.begin() like tables now do not need status.css anymore
---
web/htdocs/pages.css | 7 +++++++
web/htdocs/table.py | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/pages.css b/web/htdocs/pages.css
index 309c166..3975eb8 100644
--- a/web/htdocs/pages.css
+++ b/web/htdocs/pages.css
@@ -340,6 +340,13 @@ td.wide {
width: 100%;
}
+table.data.oddeven > tbody > tr:nth-child(odd) {
+ background-color: #eee;
+}
+
+table.data.oddeven > tbody > tr:nth-child(even) {
+ background-color: #ddd;
+}
/* Two-lined header, for example in WATO: ChangeLog->Site Status */
diff --git a/web/htdocs/table.py b/web/htdocs/table.py
index 273fbdb..e646297 100644
--- a/web/htdocs/table.py
+++ b/web/htdocs/table.py
@@ -240,7 +240,7 @@ def end():
rows = rows[:limit]
if not do_csv:
- html.write('<table class="data')
+ html.write('<table class="data oddeven')
if "css" in table:
html.write(" %s" % table["css"])
html.write('">\n')