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 --- Gemfile.lock | 2 +- lib/oxidized/api/web/public/css/oxidized.css | 12 ++++++++++-- lib/oxidized/api/web/views/nodes.haml | 5 +++-- oxidized.gemspec | 2 +- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 789cf65..6d22af9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - oxidized (0.0.28) + oxidized (0.0.29) grit haml net-ssh 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 diff --git a/oxidized.gemspec b/oxidized.gemspec index de59ea6..e5ead6c 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'oxidized' - s.version = '0.0.28' + s.version = '0.0.29' s.platform = Gem::Platform::RUBY s.authors = [ 'Saku Ytti' ] s.email = %w( saku@ytti.fi ) -- cgit v1.2.1