Module: check_mk
Branch: master
Commit: 2fc5c8bba0eddc4cd7ecf8bc7cdf0d9dbe957c8c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2fc5c8bba0eddc…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Dec 2 17:10:59 2013 +0100
FIX Fix styling of tables: always use complete width
This is important of you have a view with more than one group.
---
.werks/14 | 8 ++++++++
ChangeLog | 1 +
web/htdocs/views.css | 2 +-
web/plugins/views/availability.py | 2 +-
4 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/.werks/14 b/.werks/14
new file mode 100644
index 0000000..86eb7ea
--- /dev/null
+++ b/.werks/14
@@ -0,0 +1,8 @@
+Title: Fix styling of tables: always use complete width
+Level: 1
+Component: reporting
+Version: 1.2.3i7
+Date: 1386000623
+Class: fix
+
+This is important of you have a view with more than one group.
diff --git a/ChangeLog b/ChangeLog
index 58f3a9a..7117899 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -102,6 +102,7 @@
* 0055 Allow grouping by host, host group or service group...
* 0056 New concept of service periods in availability reporting...
* 0002 You can now annotate events in the availability reporting...
+ * 0014 FIX: Fix styling of tables: always use complete width...
Event Console:
* 0026 FIX: snmptd_mkevent.py: fixed crash on startup
diff --git a/web/htdocs/views.css b/web/htdocs/views.css
index 802faf5..473e2a5 100644
--- a/web/htdocs/views.css
+++ b/web/htdocs/views.css
@@ -482,7 +482,7 @@ table.views td.buttons {
/* Availability */
table.data.availability {
- width: auto;
+ width: 100%;
}
table.data.availability td.number {
diff --git a/web/plugins/views/availability.py b/web/plugins/views/availability.py
index 23eca6e..540deea 100644
--- a/web/plugins/views/availability.py
+++ b/web/plugins/views/availability.py
@@ -1198,7 +1198,7 @@ def render_availability_group(group_title, range_title, group_id,
availability,
# Apply visual availability levels (render OK in yellow/red, if too low)
if number and av_levels and sid in [ "ok", "up" ]:
css = "state%d" % check_av_levels(number, av_levels,
considered_duration)
- table.cell(sname, render_number(number, considered_duration),
css="number " + css, help=help)
+ table.cell(sname, render_number(number, considered_duration),
css="narrow number " + css, help=help)
# Statistics?
x_cnt, x_min, x_max = statistics.get(sid, (None, None, None))