<& SELF:title, %ARGS &>

<% $html | n %>
% unless ($is_current_revision) {

<% loc('Back to current revision') %>

% }
% if ( $revision->revision_number() > 1 ) { % if ($is_current_revision) {

<& /lib/user-image.mas, user => $revision->user() &> <% loc( 'Last edited by %html(%2) %on_datetime(%3).', $wiki->uri_for_member( $revision->user() ), $revision->user()->best_name(), $c->user->set_time_zone_for_dt( $revision->creation_datetime() ) ) | n %>

% } else {

<& /lib/user-image.mas, user => $revision->user() &> <% loc( 'This revision was created by %html(%2) %on_datetime(%3).', $wiki->uri_for_member( $revision->user() ), $revision->user()->best_name(), $c->user->set_time_zone_for_dt( $revision->creation_datetime() ) ) | n %> % }

% }

% if ( $revision->revision_number() == 1 || $revision->user_id() != $page->user_id() ) { <& /lib/user-image.mas, user => $page->user() &> % } <% loc( 'Page created by %html(%2) %on_datetime(%3).', $wiki->uri_for_member( $page->user() ), $page->user()->best_name(), $c->user->set_time_zone_for_dt( $page->creation_datetime() ) ) | n %>

% if ( $c->request()->params()->{debug} ) {
<% $revision->content() %>
% }
% if ( $page->revision_count() > 1 ) {

<% loc('Revisions') %>

<% loc( 'This page has %1 revisions.', $page->revision_count() ) %>

% if ( $revision->revision_number() > 1 ) {

<% loc( 'Compare to previous revision') %> % if ( $revision->revision_number() != $page->revision_count() ) { | <% loc( 'Compare to next revision') %> % }

<% loc( 'View previous revision') %> % if ( $revision->revision_number() != $page->revision_count() ) { | <% loc( 'View next revision') %> % }

% } % } % if ( $c->user()->has_permission_in_wiki( wiki => $wiki, permission => Silki::Schema::Permission->Manage() ) ) {

<% loc('Purge this revision') %>

% }
<%args> $page $revision $is_current_revision $html <%init> my $wiki = $page->wiki(); <%attr> show_title => 0 sidebar => [ 'page/tags', 'page/incoming-links', 'recently-viewed' ] <%method title> <% $page->title() %> % unless ($is_current_revision) { (<% loc( 'Revision %1 of %2', $revision->revision_number(), $page->most_recent_revision()->revision_number() ) %>) % } <%args> $page $revision $is_current_revision