Module: check_mk
Branch: master
Commit: dab92f055544103ba47d279db6ca0fd900b3b7bf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dab92f05554410…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri May 5 15:16:29 2017 +0200
Improve visualization of agent listing in bakery
Change-Id: I728e6fac2db40ca188556e222611e40e6968cd13
---
web/htdocs/pages.css | 44 ++++++++++++++++++++++++++++++++++++++++++++
web/htdocs/valuespec.py | 2 +-
web/htdocs/views.css | 3 ++-
3 files changed, 47 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/pages.css b/web/htdocs/pages.css
index 0fa1320..da71d05 100644
--- a/web/htdocs/pages.css
+++ b/web/htdocs/pages.css
@@ -1286,6 +1286,50 @@ a.element_dragger:hover {
transform: scale(1.005);
}
+td.invtree table,
+td.agent_config table.rulesets table {
+ border-collapse: collapse;
+ border: 0.5px solid black;
+ box-shadow: 0.5px 0.5px 1px #ccc;
+ margin-top: 3px;
+}
+
+td.invtree table td,
+td.agent_config table.rulesets table td,
+td.invtree table th,
+td.agent_config table.rulesets table td.title,
+table.data.single tr.data td.invtree table td,
+table.data.single tr.data td.invtree table th
+{
+ border: 1px solid #888;
+ padding: 1px 5px;
+ height: 14px;
+}
+
+td.invtree table th,
+td.agent_config table.rulesets table td.title {
+ text-align: left;
+}
+td.invtree table td,
+td.agent_config table.rulesets table td {
+ background-color: #fff;
+}
+
+td.agent_config table.rulesets table td.title {
+ background-color: #999;
+ color: #fff;
+}
+
+table.agents tbody > tr.data > td {
+ vertical-align: top;
+ line-height: 20px;
+}
+
+table.agents tbody > tr.data > td.agent_config {
+ vertical-align: middle;
+ line-height: normal;
+}
+
/*-------------------------------------------------------------------------.
| ____ _ |
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 631b655..55d2010 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -3525,7 +3525,7 @@ class Dictionary(ValueSpec):
s += ", "
s += "%s: %s" % (vs.title(), text)
else:
- s += html.render_tr(html.render_td("%s: " %
vs.title()) + html.render_td(text))
+ s += html.render_tr(html.render_td("%s: " %
vs.title(), class_="title") + html.render_td(text))
if not oneline:
s = html.render_table(s)
return "%s" % s
diff --git a/web/htdocs/views.css b/web/htdocs/views.css
index f374863..3c89fc7 100644
--- a/web/htdocs/views.css
+++ b/web/htdocs/views.css
@@ -733,7 +733,8 @@ td.invtree ul.treeangle {
margin-bottom: 3px;
}
-td.invtree table {
+td.invtree table,
+td.agent_config table {
border-collapse: collapse;
border: 0.5px solid black;
box-shadow: 0.5px 0.5px 1px #ccc;