Module: check_mk
Branch: master
Commit: 0b867b7e0fae8a7cb76da4175b6ba1e3e58415b4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0b867b7e0fae8a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 28 07:29:16 2014 +0100
Screenshotmode also covers sidebar
---
web/htdocs/sidebar.css | 4 ++++
web/htdocs/sidebar.py | 5 ++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/sidebar.css b/web/htdocs/sidebar.css
index cb46f73..c5f0a5a 100644
--- a/web/htdocs/sidebar.css
+++ b/web/htdocs/sidebar.css
@@ -47,6 +47,10 @@ body.side {
margin: 0px;
}
+body.side.screenshotmode {
+ background-image: url("");
+}
+
/* Top logo part */
#side_header {
position: absolute;
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 129e806..ef8d8e1 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -213,7 +213,10 @@ def page_side():
else:
interval = 'null'
html.html_head(_("Check_MK Sidebar"), javascripts=["sidebar"],
stylesheets=["sidebar", "status"])
- html.write('<body class="side" onload="initScrollPos();
setSidebarHeight(); init_messages(%s);" '
+ html.write('<body class="side')
+ if config.screenshotmode:
+ html.write(" screenshotmode")
+ html.write('" onload="initScrollPos(); setSidebarHeight();
init_messages(%s);" '
'onunload="storeScrollPos()">\n' % interval)
html.write('<div id="check_mk_sidebar">\n')