Module: check_mk
Branch: master
Commit: f9e1c9ff61c6cb0cc1f14bc5123d7764138d5bbe
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f9e1c9ff61c6cb…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Sep 27 13:21:53 2018 +0200
BI rule: Added a non-breaking space between icon and title
Change-Id: Ia6fa80c7ebcd713ba9745a6beeba24a497393d8e
---
cmk/gui/bi.py | 3 +++
cmk/gui/plugins/wato/bi.py | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/cmk/gui/bi.py b/cmk/gui/bi.py
index 3c397f5..1515fce 100644
--- a/cmk/gui/bi.py
+++ b/cmk/gui/bi.py
@@ -3077,10 +3077,13 @@ class FoldableTreeRendererTree(FoldableTreeRenderer):
with self._show_node(tree, show_host, mousecode=mc, img_class=css_class):
if tree[2].get('icon'):
html.write(html.render_icon(tree[2]['icon']))
+ html.write(" ")
+
if tree[2].get("docu_url"):
html.icon_button(tree[2]["docu_url"], _("Context
information about this rule"),
"url", target="_blank")
html.write(" ")
+
html.write_text(tree[2]["title"])
if not is_empty:
diff --git a/cmk/gui/plugins/wato/bi.py b/cmk/gui/plugins/wato/bi.py
index acd3a9f..bd997ab 100644
--- a/cmk/gui/plugins/wato/bi.py
+++ b/cmk/gui/plugins/wato/bi.py
@@ -1577,7 +1577,7 @@ class ModeBIRules(ModeBI):
table.text_cell(_("Parameters"), "
".join(rule["params"]))
if rule.get('icon'):
- title = html.render_icon(rule["icon"]) +
rule["title"]
+ title = html.render_icon(rule["icon"]) +
" " + rule["title"]
else:
title = rule["title"]
table.text_cell(_("Title"), title)