Module: check_mk
Branch: master
Commit: c7b9855added291e21d7cb92a41c5966dcf892d2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c7b9855added29…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Mar 12 17:41:23 2012 +0100
Changed Dashboard raster from 32x32 to 10x10
---
web/htdocs/dashboard.py | 6 +++---
web/htdocs/js/dashboard.js | 2 +-
web/plugins/dashboard/builtin.py | 10 +++++-----
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index ce2ccf9..b826768 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -50,7 +50,7 @@ screen_margin = 5 # Distance from the left border of the
main-fra
dashlet_padding = 21, 5, 5, 0 # Margin (N, E, S, W) between outer border of dashlet and
its content
corner_overlap = 22
title_height = 0 # Height of dashlet title-box
-raster = 32, 32 # Raster the dashlet choords are measured in
+raster = 10, 10 # Raster the dashlet choords are measured in
# Load plugins in web/plugins/dashboard and declare permissions,
# note: these operations produce language-specific results and
@@ -498,8 +498,8 @@ def dashlet_servicestats():
def render_statistics(pie_id, what, table, filter):
- pie_diameter = 130
- pie_left_aspect = 0.4
+ pie_diameter = 130
+ pie_left_aspect = 0.5
pie_right_aspect = 0.8
# Is the query restricted to a certain WATO-path?
diff --git a/web/htdocs/js/dashboard.js b/web/htdocs/js/dashboard.js
index 5fabf24..b8275db 100644
--- a/web/htdocs/js/dashboard.js
+++ b/web/htdocs/js/dashboard.js
@@ -104,7 +104,7 @@ function resize_dashlets(id, code)
function set_dashboard_size()
{
- var body_padding = 0;
+ var body_padding = 5;
var width = pageWidth();
var height = pageHeight();
width = width - 2*screen_margin - 2*body_padding;
diff --git a/web/plugins/dashboard/builtin.py b/web/plugins/dashboard/builtin.py
index caa7591..e4249dd 100644
--- a/web/plugins/dashboard/builtin.py
+++ b/web/plugins/dashboard/builtin.py
@@ -38,7 +38,7 @@ builtin_dashboards["main"] = {
"title" : _("Host Statistics"),
"url" : "dashlet_hoststats.py",
"position" : (1, 1),
- "size" : (10, 6),
+ "size" : (30, 18),
"shadow" : True,
"background" : True,
"refresh" : 60,
@@ -46,8 +46,8 @@ builtin_dashboards["main"] = {
{
"title" : _("Service Statistics"),
"url" : "dashlet_servicestats.py",
- "position" : (11, 1),
- "size" : (10, 6),
+ "position" : (31, 1),
+ "size" : (30, 18),
"shadow" : True,
"background" : True,
"refresh" : 60,
@@ -57,13 +57,13 @@ builtin_dashboards["main"] = {
"title_url" :
"view.py?view_name=hostproblems&is_host_acknowledged=0",
"view" : "hostproblems_dash", #
"view.py?view_name=hostproblems_dash&display_options=SIXHR&_body_class=dashlet",
"position" : (-1, 1),
- "size" : (GROW, 6),
+ "size" : (GROW, 18),
},
{
"title" : _("Service Problems (unhandled)"),
"title_url" :
"view.py?view_name=svcproblems&is_service_acknowledged=0",
"view" : "svcproblems_dash", #
"view.py?view_name=svcproblems_dash&display_options=SIXHR&_body_class=dashlet",
- "position" : (1, 7),
+ "position" : (1, 19),
"size" : (GROW, MAX),
},
{