Module: check_mk
Branch: master
Commit: 4dc042204b19f70e62c2b25c75a2596744308bd4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4dc042204b19f7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jul 27 11:42:14 2012 +0200
Added css class="dashboard_<name>" to the dashboard div for easier
customization of the dashboard style of a special dashboard
---
.bugs/702 | 8 ++++++++
.bugs/703 | 8 ++++++++
ChangeLog | 2 ++
web/htdocs/dashboard.py | 2 +-
4 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/.bugs/702 b/.bugs/702
new file mode 100644
index 0000000..1fcb715
--- /dev/null
+++ b/.bugs/702
@@ -0,0 +1,8 @@
+Title: dashlet_pnpgraph is missing parameter "view"
+Component: multisite
+State: open
+Date: 2012-07-27 10:26:30
+Targetversion: 1.2.0
+Class: bug
+
+The view parameter is always set to 0.
diff --git a/.bugs/703 b/.bugs/703
new file mode 100644
index 0000000..df1f45f
--- /dev/null
+++ b/.bugs/703
@@ -0,0 +1,8 @@
+Title: Dasboard misses iframefunc capability
+Component: multisite
+State: open
+Date: 2012-07-27 10:27:06
+Targetversion: 1.2.0
+Class: feature
+
+Analog to urlfunc there should be a iframefunc to be able to create dynamic iframe based
dashlets.
diff --git a/ChangeLog b/ChangeLog
index b990f66..e7c96ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -39,6 +39,8 @@
* Great speed up of rule compilation in large environments
Multisite:
+ * Added css class="dashboard_<name>" to the dashboard div for easier
+ customization of the dashboard style of a special dashboard
* FIX: fixed localization of general permissions
* FIX: show multisite warning messages even after page reload
* FIX: fix bug in Age ValueSpec: days had been ignored
diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index b93b980..b070a2e 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -123,7 +123,7 @@ def render_dashboard(name):
title = wato.api.get_folder_title(wato_folder) + " - " + title
html.header(title, javascripts=["dashboard"],
stylesheets=["pages", "dashboard", "status",
"views"])
- html.write("<div id=dashboard>\n") # Container of all dashlets
+ html.write("<div id=dashboard class=\"dashboard_%s\">\n" %
name) # Container of all dashlets
refresh_dashlets = [] # Dashlets with automatic refresh, for Javascript
for nr, dashlet in enumerate(board["dashlets"]):