diff options
| author | hukl <contact@smyck.org> | 2009-02-17 21:56:20 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-17 21:56:20 +0100 |
| commit | 0b8cfc272d883e7865461d8ce05cd5c6aabec90e (patch) | |
| tree | 9c7032a704d6806c8839b32854e110399fc0f6ff | |
| parent | ea8c12c74c332f6b4c12f3e582baf3cbe901e87d (diff) | |
a little style here and there
| -rw-r--r-- | app/views/nodes/index.html.erb | 37 | ||||
| -rw-r--r-- | 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 @@ | |||
| 1 | <h1>Nodes</h1> | 1 | <h1>Nodes</h1> |
| 2 | 2 | ||
| 3 | <%= will_paginate @nodes %> | 3 | <%= will_paginate @nodes %> |
| 4 | 4 | <p> | |
| 5 | <table id="node_table"> | 5 | <table id="node_table"> |
| 6 | <% @nodes.each do |node| %> | 6 | <tr> |
| 7 | <tr> | 7 | <th class="title">Title</th> |
| 8 | <td><%= link_to node.unique_name, node_path(node) %></td> | 8 | <th class="path">Path</th> |
| 9 | <td><%= node.head.title if node.head %></td> | 9 | <th class="actions">Actions</th> |
| 10 | <td> | 10 | </tr> |
| 11 | <%= link_to 'Show', node_path(node) %> | 11 | <% @nodes.each do |node| %> |
| 12 | <%= link_to 'Edit', edit_node_path(node) %> | 12 | <tr class="<%= cycle("even", "odd") %>"> |
| 13 | <%= link_to 'Destroy', node, :method => :delete %> | 13 | <td><%= node.head.title if node.head %></td> |
| 14 | </td> | 14 | <td><%= node.unique_name %></td> |
| 15 | </tr> | 15 | <td> |
| 16 | <% end %> | 16 | <%= link_to 'Show', node_path(node) %> |
| 17 | </table> | 17 | <%= link_to 'Edit', edit_node_path(node) %> |
| 18 | 18 | <%= link_to 'Destroy', node, :method => :delete %> | |
| 19 | <%= will_paginate @nodes %> | 19 | </td> |
| 20 | </tr> | ||
| 21 | <% end %> | ||
| 22 | </table> | ||
| 23 | </p> | ||
| 24 | <%= 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 @@ | |||
| 1 | body { | 1 | body { |
| 2 | font-family: Arial, sans-serif; | 2 | font-family: Arial, sans-serif; |
| 3 | font-size: 10pt; | 3 | font-size: 10pt; |
| 4 | } | ||
| 5 | |||
| 6 | a { | ||
| 7 | color: #009cff; | ||
| 8 | } | ||
| 9 | |||
| 10 | table {} | ||
| 11 | |||
| 12 | table#node_table { | ||
| 13 | width: 800px; | ||
| 14 | } | ||
| 15 | |||
| 16 | tr.odd { | ||
| 17 | background-color: #f1f1f1; | ||
| 18 | } | ||
| 19 | |||
| 20 | th { | ||
| 21 | text-align: left; | ||
| 22 | } | ||
| 23 | |||
| 24 | th.title { | ||
| 25 | width: 450px; | ||
| 26 | } | ||
| 27 | |||
| 28 | th.path { | ||
| 29 | width: 300px; | ||
| 30 | } | ||
| 31 | |||
| 32 | th.actions { | ||
| 33 | width: 150px; | ||
| 34 | } | ||
| 35 | |||
| 36 | td {} | ||
| 37 | |||
| 38 | .page_editor input[type=text] { | ||
| 39 | width: 600px; | ||
| 40 | } | ||
| 41 | |||
| 42 | .page_editor textarea { | ||
| 43 | width: 600px; | ||
| 4 | } \ No newline at end of file | 44 | } \ No newline at end of file |
