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 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'app') 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 -- cgit v1.3