Source view for Revisions

This commit is contained in:
Jacques Distler 2011-08-27 21:58:14 -05:00
parent 2801421969
commit 66f62bac1f
6 changed files with 17 additions and 2 deletions

View file

@ -32,6 +32,8 @@ module CacheSweepingHelper
:action => 'revision', :id => page.name, :rev => revno
expire_action :controller => 'wiki', :web => page.web.address,
:action => 'revision', :id => page.name, :rev => revno, :mode => 'diff'
expire_action :controller => 'wiki', :web => page.web.address,
:action => 'source', :id => page.name, :rev => revno
end
end

View file

@ -401,7 +401,7 @@ EOL
end
def source
#to template
@revision = @page.revisions[params['rev'].to_i - 1] if params['rev']
end
def tex