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

<%= link_to 'Back to node', node_path(@node) %>

<% pages = (@pages || @node.pages.all).reverse %> <% pages.each_with_index do |page, index| %> <% end %>
First Last Rev. Title Editor Date
<%= button_to 'Diff revisions', diff_node_revisions_path(@node), method: :post, form: { id: 'diff_form', class: 'button_to computation' }, disabled: true %>
<%= radio_button_tag :start_revision, page.revision, index == 1 %> <%= radio_button_tag :end_revision, page.revision, index == 0 %> <%= page.revision %> <%= page.title %> <%= page.editor.try(:login) %> <%= page.updated_at %> <%= link_to 'show', node_revision_path(@node, page) %> <%= button_to 'restore', restore_node_revision_path(@node, page), method: :put, form: { data: { confirm: "Restore this revision?" }, class: 'button_to state_changing' } %>