From ca08b36ca6bd874abbb7207495860eeeb53884e0 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 15 Mar 2009 20:19:05 +0100 Subject: this was the wrong revision number --- app/views/nodes/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index 31cd53c..ad60498 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb @@ -23,7 +23,7 @@ <%= node.unique_name %> <%= link_to 'Show', node_path(node) %> - <%= link_to 'Edit', edit_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?" %> @@ -32,7 +32,7 @@ <%= "#{node.draft.user.login}" if node.draft && node.draft.user %> - <%= node.head.revision if node.head %> + <%= node.pages.length %> <% end %> -- cgit v1.3