summaryrefslogtreecommitdiff
path: root/lib/oxidized/api/web
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-02-27 15:08:43 +0200
committerSaku Ytti <saku@ytti.fi>2014-02-27 15:08:43 +0200
commit554ed10e16544c76447cc4e97865055eeef47482 (patch)
treedb0ed7f7eeb5802bf4e43ff6745e5d79173d5124 /lib/oxidized/api/web
parentc16616f80c6756d407795498335ba779c11e5fbb (diff)
Slightly less ugly nodes page
Diffstat (limited to 'lib/oxidized/api/web')
-rw-r--r--lib/oxidized/api/web/public/css/oxidized.css12
-rw-r--r--lib/oxidized/api/web/views/nodes.haml5
2 files changed, 13 insertions, 4 deletions
diff --git a/lib/oxidized/api/web/public/css/oxidized.css b/lib/oxidized/api/web/public/css/oxidized.css
index 8455513..9df98c6 100644
--- a/lib/oxidized/api/web/public/css/oxidized.css
+++ b/lib/oxidized/api/web/public/css/oxidized.css
@@ -4,7 +4,6 @@ body {
}
a:link {
- /* color: #268bd2; */
color: #dc322f;
text-decoration: none;
}
@@ -20,6 +19,16 @@ a:hover {
a:active {
}
+.center {
+ margin-left: auto;
+ margin-right: auto;
+ text-align: center;
+}
+
+th {
+ color: #2aa198;
+}
+
tr.odd {
background: #eee8d5;
}
@@ -32,4 +41,3 @@ tr:hover {
background: #586e75;
color: #fdf6e3;
}
-
diff --git a/lib/oxidized/api/web/views/nodes.haml b/lib/oxidized/api/web/views/nodes.haml
index 4bc0b14..87549cc 100644
--- a/lib/oxidized/api/web/views/nodes.haml
+++ b/lib/oxidized/api/web/views/nodes.haml
@@ -1,8 +1,7 @@
%html
!=haml :head
%body
- %a(href="/reload") reload list of nodes
- %table
+ %table{:class=>'center'}
%tr
%th Name
%th IP
@@ -25,3 +24,5 @@
%a(href="/node/fetch/#{node[:full_name]}") config
%td
%a(href="/node/next/#{node[:full_name]}") update
+ %p{:class=>'center'}
+ %a(href="/reload") reload list of nodes