% @title = @page.plain_name %>
<%= sub_template "top" %>
<%= @page.display_content %>
Showing changes from revision #<%= @page.number - 1 %> to #<%= @page.number %>:
Added | Removed
<%= @page.display_diff %>
<%= @page.revisions? ? "Revised" : "Created" %> on <%= @page.pretty_created_at %>
by <%= @page.author_link %>
<%= "(#{@page.author.ip})" if @page.author.respond_to?(:ip) %>
<% if @web.count_pages %>
<% total_chars = @page.content.length %>
(<%= total_chars %> characters / <%= sprintf("%-.1f", (total_chars / 2275 rescue 0)) %> pages)
<% end %>
Edit Page
<% if @page.revisions.length > 1 %>
|
Back in time
(<%= @page.revisions.length - 1 %> revisions)
<% end %>
<% if @page.revisions.length > 1 %>
| See changes
| Hide changes
<% end %>
| Views: Print
<% if OPTIONS[:pdflatex] && @web.markup == :textile %>
| TeX | PDF
<% end %>
<% if @page.references.length > 0 %>
| Linked from: <%= @page.references.collect { |ref| ref.link }.join(", ") %>
<% end %>
<% if @page.bliki_references.length > 0 %>
| Bliki Linked from: <%= @page.bliki_references.collect { |ref| link_to_bliki(ref) }.join(", ") %>
<% end %>
<% if @page.name == "HomePage" %>
Edit Web
| <%= list_item "Authors", "../authors/", "Who wrote what" %>
| <%= list_item "Feeds", "../feeds/", "Subscribe to changes by RSS" %>
| <%= list_item "Export", "../export/", "Download a zip with all the pages in this wiki", "X" %>
<% end %>
<%= sub_template "bottom" %>