From 40bdc8384a33019c1771fbad888525505f61aa7c Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 21 Mar 2009 15:00:50 +0100 Subject: cleaned up the node index view --- app/views/nodes/index.html.erb | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'app') diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index ad60498..103617c 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb @@ -6,33 +6,32 @@ <%= will_paginate @nodes %>

- + + - <% @nodes.each do |node| %> "> - + - - <% end %> -- cgit v1.3
ID TitlePath Actions Locked by Rev.
- - <%= title_for_node node %> - + <%= node.id %> +

<%= title_for_node node %>

+

<%= node.unique_name %>

<%= node.unique_name %> - <%= link_to 'Show', node_path(node) %> - <%= link_to 'Edit', edit_node_path(node) %> - <%= link_to 'Revision', :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?" %> + + <%= link_to 'Show', node_path(node) %> + <%= link_to 'Edit', edit_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?" %> <%= "#{node.draft.user.login}" if node.draft && node.draft.user %> - <%= node.pages.length %> + <%= node.draft ? node.draft.revision : node.head.revision %>