From 554ed10e16544c76447cc4e97865055eeef47482 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Thu, 27 Feb 2014 15:08:43 +0200 Subject: Slightly less ugly nodes page --- lib/oxidized/api/web/public/css/oxidized.css | 12 ++++++++++-- lib/oxidized/api/web/views/nodes.haml | 5 +++-- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'lib/oxidized') 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 -- cgit v1.2.1