Module: check_mk
Branch: master
Commit: 67872ab8d7807566106a79ab3d11210f6b09e90d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=67872ab8d78075…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Dec 16 08:37:03 2011 +0100
FIX: single dataset layout honors column header settings
---
ChangeLog | 1 +
web/plugins/views/layouts.py | 4 +++-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3a514bc..bf300e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -99,6 +99,7 @@
* FIX: fix dashboard dashlet background on IE
* FIX: fix row highlight in status GUI on IE 7/8
* FIX: fix row highlight after status page reload
+ * FIX: single dataset layout honors column header settings
Checks & Agents:
* FIX: lnx_if: assume interfaces as up if ethtool is missing or
diff --git a/web/plugins/views/layouts.py b/web/plugins/views/layouts.py
index 3fd6b63..064165e 100644
--- a/web/plugins/views/layouts.py
+++ b/web/plugins/views/layouts.py
@@ -80,7 +80,9 @@ def render_single_dataset(rows, view, group_painters, painters,
num_columns, _ig
else:
title = painter["title"]
- html.write("<tr class=data><td
class=left>%s</td>" % title)
+ html.write("<tr class=data>")
+ if view.get("column_headers") != "off":
+ html.write("<td class=left>%s</td>" % title)
for row in thispart:
paint(p, row)
if len(thispart) < num_columns: