Module: check_mk
Branch: master
Commit: 2e8c478acd264d60039ac7b78c697cda15c8263f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2e8c478acd264d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue May 8 14:33:37 2012 +0200
Fixed layout of BI state filters
---
web/plugins/views/bi.py | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/web/plugins/views/bi.py b/web/plugins/views/bi.py
index 0985208..1475d34 100644
--- a/web/plugins/views/bi.py
+++ b/web/plugins/views/bi.py
@@ -585,17 +585,22 @@ class BIStatusFilter(Filter):
def filter(self, tablename):
return ""
+ def double_height(self):
+ return self.column == "aggr_assumed_state"
+
def display(self):
if html.var("filled_in"):
defval = ""
else:
defval = "on"
- for varend, text in [('0', 'OK'), ('1', 'WARN'),
('2', 'CRIT'), ('3', 'UNKNOWN'), ('-1',
'PENDING'), ('n', 'unset')]:
+ for varend, text in [('0', 'OK'), ('1', 'WARN'),
('2', 'CRIT'),
+ ('3', 'UNKN'), ('-1',
'PENDING'), ('n', _('no assumed state set'))]:
if self.code != 'a' and varend == 'n':
continue # no unset for read and effective state
+ if varend == 'n':
+ html.write("<br>")
var = self.prefix + varend
- html.checkbox(var, defval)
- html.write(" %s " % text)
+ html.checkbox(var, defval, label = text)
def filter_table(self, rows):
jeaders = []