<% content_for :subnavigation do %> <%= link_to 'Edit', edit_node_path(@node) %> <% end %>

Revisions for Node: <%= @node.unique_name %>

<% form_tag diff_node_revisions_path(@node) do %> <% @node.pages.reverse.each do |page| %> <% end %>
First Last Rev. Title Editor Date
<%= radio_button_tag :start_revision, page.revision %> <%= radio_button_tag :end_revision, page.revision %> <%= page.revision %> <%= page.title %> <%= page.editor.try(:login) %> <%= page.updated_at %> <%= link_to 'show', node_revision_path(@node, page) %> <%= link_to( 'restore', restore_node_revision_path(@node, page), :method => :put, :confirm => "Restore this revision?" ) %>
<%= submit_tag 'Diff revisions' %>
<% end %>