Module: check_mk
Branch: master
Commit: 9087eb59f6b2cf6b410f2dc23fe4f0e054ef85c3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9087eb59f6b2cf…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Mar 25 08:14:12 2011 +0100
FIX: Multisite: custom_style_sheet now also honored by sidebar
---
ChangeLog | 1 +
web/htdocs/sidebar.py | 6 +++++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f77780b..73c7ab3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
* Agent simulation mode (for internal use and check development)
Multisite:
+ * FIX: custom_style_sheet now also honored by sidebar
* Added snmp_uptime, uptime and printer_supply perfometers
BI:
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 6872f3e..57a8c8b 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -135,7 +135,11 @@ def page_side(h):
<html>
<head>
<title>Check_MK Sidebar</title>
-<link href="check_mk.css" type="text/css"
rel="stylesheet">
+<link href="check_mk.css" type="text/css"
rel="stylesheet">""")
+ if config.custom_style_sheet:
+ html.write('<link rel="stylesheet" type="text/css"
href="%s">' % config.custom_style_sheet)
+
+ html.write("""
<script type="text/javascript"
src="js/check_mk.js"></script>
<script type="text/javascript"
src="js/sidebar.js"></script>
</head>