From 0b8cfc272d883e7865461d8ce05cd5c6aabec90e Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 17 Feb 2009 21:56:20 +0100 Subject: a little style here and there --- app/views/nodes/index.html.erb | 37 +++++++++++++++++++++---------------- public/stylesheets/admin.css | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 16 deletions(-) diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index c6c2633..5f913e9 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb @@ -1,19 +1,24 @@

Nodes

<%= will_paginate @nodes %> - - - <% @nodes.each do |node| %> - - - - - - <% end %> -
<%= link_to node.unique_name, node_path(node) %><%= node.head.title if node.head %> - <%= link_to 'Show', node_path(node) %> - <%= link_to 'Edit', edit_node_path(node) %> - <%= link_to 'Destroy', node, :method => :delete %> -
- -<%= will_paginate @nodes %> +

+ + + + + + + <% @nodes.each do |node| %> + "> + + + + + <% end %> +
TitlePathActions
<%= node.head.title if node.head %><%= node.unique_name %> + <%= link_to 'Show', node_path(node) %> + <%= link_to 'Edit', edit_node_path(node) %> + <%= link_to 'Destroy', node, :method => :delete %> +
+

+<%= will_paginate @nodes %> \ No newline at end of file diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index 398b736..e475f4c 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css @@ -1,4 +1,44 @@ body { font-family: Arial, sans-serif; font-size: 10pt; +} + +a { + color: #009cff; +} + +table {} + +table#node_table { + width: 800px; +} + +tr.odd { + background-color: #f1f1f1; +} + +th { + text-align: left; +} + +th.title { + width: 450px; +} + +th.path { + width: 300px; +} + +th.actions { + width: 150px; +} + +td {} + +.page_editor input[type=text] { + width: 600px; +} + +.page_editor textarea { + width: 600px; } \ No newline at end of file -- cgit v1.3