summaryrefslogtreecommitdiff
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
parentc16616f80c6756d407795498335ba779c11e5fbb (diff)
Slightly less ugly nodes page
-rw-r--r--Gemfile.lock2
-rw-r--r--lib/oxidized/api/web/public/css/oxidized.css12
-rw-r--r--lib/oxidized/api/web/views/nodes.haml5
-rw-r--r--oxidized.gemspec2
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 )