2005-04-03 08:19:33 +02:00
|
|
|
<%
|
2006-03-11 23:10:32 +01:00
|
|
|
@title = @page.plain_name
|
|
|
|
@title += ' (changes)' if @show_diff
|
2005-04-03 08:19:33 +02:00
|
|
|
@show_footer = true
|
|
|
|
%>
|
2005-01-24 19:52:04 +01:00
|
|
|
|
|
|
|
<div id="revision">
|
2006-03-19 08:54:54 +01:00
|
|
|
<% if @show_diff %>
|
|
|
|
<p style="background: #eee; padding: 3px; border: 1px solid silver">
|
|
|
|
<small>
|
|
|
|
Showing changes from revision #<%= @page.revisions.size - 1 %> to #<%= @page.revisions.size %>:
|
|
|
|
<ins class="diffins">Added</ins> | <del class="diffdel">Removed</del>
|
|
|
|
</small>
|
|
|
|
</p>
|
|
|
|
<%= @renderer.display_diff %>
|
|
|
|
<% else %>
|
|
|
|
<%= @renderer.display_content %>
|
|
|
|
<% end %>
|
2005-01-24 19:52:04 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="byline">
|
2005-08-15 01:35:10 +02:00
|
|
|
<%= @page.revisions? ? "Revised" : "Created" %> on <%= format_date(@page.revised_at) %>
|
2005-09-10 13:07:40 +02:00
|
|
|
by <%= author_link(@page) %>
|
2005-01-24 19:52:04 +01:00
|
|
|
<%= "(#{@page.author.ip})" if @page.author.respond_to?(:ip) %>
|
2005-08-09 04:20:28 +02:00
|
|
|
<% if @web.count_pages? %>
|
2005-01-24 19:52:04 +01:00
|
|
|
<% total_chars = @page.content.length %>
|
|
|
|
(<%= total_chars %> characters / <%= sprintf("%-.1f", (total_chars / 2275 rescue 0)) %> pages)
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="navigation">
|
|
|
|
|
2006-03-19 08:54:54 +01:00
|
|
|
<%= navigation_menu_for_page.join(' | ') %>
|
|
|
|
|
2005-01-24 19:52:04 +01:00
|
|
|
<small>
|
2005-02-19 00:19:42 +01:00
|
|
|
| Views:
|
|
|
|
<%= link_to('Print',
|
2005-11-04 07:19:10 +01:00
|
|
|
{ :web => @web.address, :action => 'print', :id => @page.name },
|
|
|
|
{ :accesskey => 'p', :name => 'view_print' }) %>
|
2005-01-24 19:52:04 +01:00
|
|
|
<% if defined? RedClothForTex and RedClothForTex.available? and @web.markup == :textile %>
|
2005-02-19 00:19:42 +01:00
|
|
|
|
|
2005-05-18 03:10:49 +02:00
|
|
|
<%= link_to 'TeX', {:web => @web.address, :action => 'tex', :id => @page.name},
|
|
|
|
{:name => 'view_tex'} %>
|
2005-02-19 00:19:42 +01:00
|
|
|
|
|
2005-05-18 03:10:49 +02:00
|
|
|
<%= link_to 'PDF', {:web => @web.address, :action => 'pdf', :id => @page.name},
|
|
|
|
{:name => 'view_pdf'} %>
|
2005-01-24 19:52:04 +01:00
|
|
|
<% end %>
|
|
|
|
</small>
|
|
|
|
|
2005-11-04 07:19:10 +01:00
|
|
|
<%= render :partial => 'inbound_links' %>
|
2005-01-24 19:52:04 +01:00
|
|
|
</div>
|