mirror of
https://github.com/redmine/redmine.git
synced 2026-03-04 19:41:25 +01:00
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:
@@ -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'
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user