Module: check_mk
Branch: master
Commit: 660f2cba36a4207412d90d0c55c513e0dc62020d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=660f2cba36a420…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jul 11 11:55:00 2017 +0200
Fixed styling of empty virtual host tree link
Change-Id: I94216e00cc1e5d11e85946abf64b6c36afb751d8
---
web/plugins/sidebar/shipped.py | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index 93fd8d9..7c6d636 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -1854,7 +1854,7 @@ class VirtualHostTree(SidebarSnapin):
tree_id = tree_conf["tree"]
# Fallback to first defined tree in case the user selected does not exist
anymore
- if tree_id not in self._trees:
+ if tree_id not in self._trees and self._trees:
tree_id = self._tree_choices()[0][0]
self._cwds = tree_conf["cwd"]
@@ -1884,8 +1884,8 @@ class VirtualHostTree(SidebarSnapin):
if not config.virtual_host_trees:
url = 'wato.py?varname=virtual_host_trees&mode=edit_configvar'
multisite = html.render_a("Multisite", href=url,
target="main")
- html.write_html(_('You have not defined any virtual host trees. You can
do this '
- 'in the global settings for %s.') % multisite)
+ html.p(HTML(_('You have not defined any virtual host trees. You can do
this '
+ 'in the global settings for %s.') % multisite))
return
self._show_tree_selection()
@@ -2353,6 +2353,18 @@ function virtual_host_tree_enter(path)
top: 0px;
left: 0px;
}
+
+#snapin_tag_tree p {
+ margin: 0;
+}
+
+#snapin_tag_tree p a {
+ text-decoration: underline;
+}
+
+#snapin_tag_tree p a:hover {
+ text-decoration: none;
+}
"""
register_snapin("tag_tree", VirtualHostTree())