% @title = "#{@page.plain_name} (Rev ##{@revision.number})" %>
<%= @revision.display_content %>
Showing changes from revision #<%= @revision.number - 1 %> to #<%= @revision.number %>:
Added | Removed
<%= @revision.display_diff %>
<%= "Revision from #{@revision.pretty_created_at} by" %>
<%= link_to_page @revision.author %>
<% if @revision.next_revision %>
<% if @revision.next_revision.number < (@page.revisions.length - 1) %>
<% else %>
<% end %>
Forward in time
(<%= @revision.page.revisions.length - @revision.next_revision.number %> more)
<% end %>
<% if @revision.next_revision && @revision.previous_revision %>
|
<% end %>
<% if @revision.previous_revision %>
Back in time
(<%= @revision.previous_revision.number + 1 %> more)
<% end %>
|
See current
<% if @revision.previous_revision %>
| See changes
| Hide changes
<% end %>
|
Rollback
<% if @page.references.length > 0 %>
| Linked from: <%= @page.references.collect { |ref| "#{ref.name}" }.join(", ") %>
<% end %>