fixed export of wiki history pages

git-svn-id: http://redmine.rubyforge.org/svn/branches/work@300 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-03-05 18:53:10 +00:00
parent 6186117886
commit bb586a4431
2 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ class WikiController < ApplicationController
send_data(export, :type => 'text/html', :filename => "#{@page.title}.html")
return
elsif params[:export] == 'txt'
send_data(@page.content.text, :type => 'text/plain', :filename => "#{@page.title}.txt")
send_data(@content.text, :type => 'text/plain', :filename => "#{@page.title}.txt")
return
end
render :action => 'show'

View File

@@ -27,6 +27,6 @@
<div class="contextual">
<%= l(:label_export_to) %>
<%= link_to 'HTML', {:export => 'html'}, :class => 'icon icon-html' %>,
<%= link_to 'TXT', {:export => 'txt'}, :class => 'icon icon-txt' %>
<%= link_to 'HTML', {:export => 'html', :version => @content.version}, :class => 'icon icon-html' %>,
<%= link_to 'TXT', {:export => 'txt', :version => @content.version}, :class => 'icon icon-txt' %>
</div>