From e4dd7a33a84d755f81fe5d07bcfb372f397f9cab Mon Sep 17 00:00:00 2001 From: hukl Date: Mon, 13 Apr 2009 21:43:18 +0200 Subject: now the node index page is sexy too ! --- app/views/nodes/index.html.erb | 16 +++++-------- public/stylesheets/admin.css | 53 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 10 deletions(-) diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index be63de3..b29b65d 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb @@ -1,12 +1,12 @@ - +<% end %>

Nodes

<%= will_paginate @nodes %>

- + @@ -17,12 +17,11 @@ ">
ID Title Actions
<%= node.id %> -

<%= title_for_node node %>

-

<%= node.unique_name %>

+

<%= link_to title_for_node(node), edit_node_path(node) %>

+

<%= link_to_path(node.unique_name, node.unique_path) %>

- <%= link_to 'Show', node_path(node) %> - <%= link_to 'Edit', edit_node_path(node) %> + <%= link_to 'Preview', node_path(node) %> <%= link_to 'Revisions', :controller => :revisions, :action => :show, :id => node.id %> <%# link_to 'Destroy', node, :method => :delete, :confirm => "Are you sure you want to delete this node?" %> <%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %> @@ -39,6 +38,3 @@

<%= will_paginate @nodes %> -<% content_for :menu do %> - <%= link_to 'Create', new_node_path %> -<% end %> \ No newline at end of file diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index a23eea5..802ad31 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css @@ -1,3 +1,5 @@ +/* Layout */ + body { font-family: Helvetica, Arial, sans-serif; font-size: 12px; @@ -8,6 +10,10 @@ a { text-decoration: none; } +a:hover { + color: #ff9600; +} + th { text-transform: lowercase; } @@ -17,6 +23,14 @@ th { width: 899px; } +/* Pagination */ + +div.pagination span.current, div.pagination a:hover { + color: #ff9600; +} + +/* Styles */ + .right { text-align: right; } @@ -57,6 +71,45 @@ th { background-color: #000000; } +/* Nodes */ + +table#node_table { + width: 899px; + border-collapse: collapse; +} + +table#node_table tr { + height: 65px; +} + +table#node_table th.title { + width: 450px; +} + +table#node_table tr.header { + height: 20px; + text-align: left; +} + +table#node_table td { + padding-top: 0px; + padding-bottom: 0px; + padding-right: 25px; + padding-left: 0px; +} + +table#node_table tr.header:hover { + background-color: #ffffff; +} + +table#node_table tr:hover { + background-color: #f1f1f1; +} + +table#node_table .actions { + text-transform: lowercase; +} + /* Revisions */ table#revisions { -- cgit v1.3