2008-12-15 20:19:22 +01:00
|
|
|
<%-
|
2007-01-22 14:43:50 +01:00
|
|
|
@title = @page.plain_name
|
2010-05-26 07:27:49 +02:00
|
|
|
@title += ' (changes)' if @show_diff
|
2007-01-22 14:43:50 +01:00
|
|
|
@show_footer = true
|
2008-12-15 20:19:22 +01:00
|
|
|
-%>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
<div id="revision">
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- if @show_diff -%>
|
2007-02-18 08:48:32 +01:00
|
|
|
<p class="show_diff">
|
2011-04-25 17:54:44 +02:00
|
|
|
Showing changes from revision #<%= @page.rev_ids.size - 1 %> to #<%= @page.rev_ids.size %>:
|
2007-02-04 17:18:21 +01:00
|
|
|
<ins class="diffins">Added</ins> | <del class="diffdel">Removed</del> | <del class="diffmod">Chan</del><ins class="diffmod">ged</ins>
|
2007-01-22 14:43:50 +01:00
|
|
|
</p>
|
|
|
|
<%= @renderer.display_diff %>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- else -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
<%= @renderer.display_content %>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="byline">
|
|
|
|
<%= @page.revisions? ? "Revised" : "Created" %> on <%= format_date(@page.revised_at) %>
|
2010-05-26 07:27:49 +02:00
|
|
|
by <%= author_link(@page) %>
|
2007-01-22 14:43:50 +01:00
|
|
|
<%= "(#{@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 %>
|
|
|
|
</div>
|
|
|
|
|
2008-01-19 22:06:17 +01:00
|
|
|
<div class="navigation navfoot">
|
2007-01-22 14:43:50 +01:00
|
|
|
|
2010-05-26 07:27:49 +02:00
|
|
|
<%= raw navigation_menu_for_page.join(' | ') %>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
2007-02-18 08:48:32 +01:00
|
|
|
<span class="views">
|
2007-01-22 14:43:50 +01:00
|
|
|
| Views:
|
|
|
|
<%= link_to('Print',
|
|
|
|
{ :web => @web.address, :action => 'print', :id => @page.name },
|
2007-09-28 03:04:27 +02:00
|
|
|
{ :accesskey => 'p', :id => 'view_print', :rel => 'nofollow' }) %>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- if @web.markup == :markdownMML or @web.markup == :markdown or @web.markup == :markdownPNG -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
|
<%= link_to 'TeX', {:web => @web.address, :action => 'tex', :id => @page.name},
|
2007-09-28 03:04:27 +02:00
|
|
|
{:id => 'view_tex', :rel => 'nofollow' } %>
|
2007-03-10 22:09:20 +01:00
|
|
|
<% if WikiReference.pages_in_category(@web, 'S5-slideshow').map.include?(@page.name) %>
|
2007-03-01 10:05:35 +01:00
|
|
|
|
|
2007-03-01 22:15:41 +01:00
|
|
|
<%= link_to 'S5', {:web => @web.address, :action => 's5', :id => @page.name},
|
|
|
|
{:id => 'view_S5'} %>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|
|
|
|
<%- end -%>
|
2009-12-14 02:25:14 +01:00
|
|
|
|
|
|
|
|
<%= link_to 'Source', {:web => @web.address, :action => 'source', :id => @page.name},
|
|
|
|
{:id => 'view_source', :rel => 'nofollow' } %>
|
2007-02-18 08:48:32 +01:00
|
|
|
</span>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
<%= render :partial => 'inbound_links' %>
|
|
|
|
</div>
|