2007-01-22 14:43:50 +01:00
|
|
|
<%
|
|
|
|
@title = @page.plain_name
|
|
|
|
@title += ' (changes)' if @show_diff
|
|
|
|
@show_footer = true
|
|
|
|
%>
|
|
|
|
|
|
|
|
<div id="revision">
|
|
|
|
<% 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 %>:
|
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
|
|
|
</small>
|
|
|
|
</p>
|
|
|
|
<%= @renderer.display_diff %>
|
|
|
|
<% else %>
|
|
|
|
<%= @renderer.display_content %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="byline">
|
|
|
|
<%= @page.revisions? ? "Revised" : "Created" %> on <%= format_date(@page.revised_at) %>
|
|
|
|
by <%= author_link(@page) %>
|
|
|
|
<%= "(#{@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>
|
|
|
|
|
|
|
|
<div class="navigation">
|
|
|
|
|
|
|
|
<%= navigation_menu_for_page.join(' | ') %>
|
|
|
|
|
|
|
|
<small>
|
|
|
|
| Views:
|
|
|
|
<%= link_to('Print',
|
|
|
|
{ :web => @web.address, :action => 'print', :id => @page.name },
|
2007-02-15 15:26:47 +01:00
|
|
|
{ :accesskey => 'p', :id => 'view_print' }) %>
|
2007-01-22 15:36:51 +01:00
|
|
|
<% if defined? RedClothForTex and RedClothForTex.available? and @web.markup == :textile or @web.markup == :markdownMML %>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
|
<%= link_to 'TeX', {:web => @web.address, :action => 'tex', :id => @page.name},
|
2007-02-15 15:26:47 +01:00
|
|
|
{:id => 'view_tex'} %>
|
2007-02-16 18:05:55 +01:00
|
|
|
<!-- Doesn't really work right:
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
|
<%= link_to 'PDF', {:web => @web.address, :action => 'pdf', :id => @page.name},
|
2007-02-15 15:26:47 +01:00
|
|
|
{:id => 'view_pdf'} %>
|
2007-02-16 18:05:55 +01:00
|
|
|
-->
|
2007-01-22 14:43:50 +01:00
|
|
|
<% end %>
|
|
|
|
</small>
|
|
|
|
|
|
|
|
<%= render :partial => 'inbound_links' %>
|
|
|
|
</div>
|