Module: check_mk
Branch: master
Commit: dba61f51f99b082bf5cbfc44f2481049c65247c0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dba61f51f99b08…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Aug 1 10:14:20 2013 +0200
Fixed styling of tag filter
---
web/plugins/views/filters.py | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/web/plugins/views/filters.py b/web/plugins/views/filters.py
index 308204d..62761c5 100644
--- a/web/plugins/views/filters.py
+++ b/web/plugins/views/filters.py
@@ -693,8 +693,8 @@ class FilterHostTags(Filter):
def display(self):
groups = [ (e[0], e[1]) for e in config.wato_host_tags ]
operators = [
- ("is", _("is")),
- ("isnot", _("is not")),
+ ("is", _("=")),
+ ("isnot", _("≠")),
]
# replace unicode strings, before writing out as "json"
@@ -714,12 +714,16 @@ class FilterHostTags(Filter):
html.write('<tr><td>')
html.sorted_select(prefix + '_grp',
[("", "")] + groups,
- onchange = 'host_tag_update_value(\'%s\', this.value)' %
prefix
+ onchange = 'host_tag_update_value(\'%s\', this.value)' %
prefix,
+ attrs = {'style': 'width:129px'}
)
html.write('</td><td>')
- html.sorted_select(prefix + '_op', [("", "")] +
operators)
+ html.sorted_select(prefix + '_op', [("", "")] +
operators,
+ attrs = {'style': 'width:36px'})
html.write('</td><td>')
- html.sorted_select(prefix + '_val', html.var(prefix + '_grp')
and grouped[html.var(prefix + '_grp')] or [("", "")])
+ html.sorted_select(prefix + '_val',
+ html.var(prefix + '_grp') and grouped[html.var(prefix +
'_grp')] or [("", "")],
+ attrs = {'style': 'width:129px'})
html.write('</td></tr>')
html.write('</table>')