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:
1 parent
6186117886
commit
bb586a4431
2 files changed
+3
-3
No files matched your search
@@ -33,7 +33,7 @@ class WikiController < ApplicationController
|
|||||||
send_data(export, :type => 'text/html', :filename => "#{@page.title}.html")
|
send_data(export, :type => 'text/html', :filename => "#{@page.title}.html")
|
||||||
return
|
return
|
||||||
elsif params[:export] == 'txt'
|
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
|
return
|
||||||
end
|
end
|
||||||
render :action => 'show'
|
render :action => 'show'
|
||||||
|
|||||||
@@ -27,6 +27,6 @@
|
|||||||
|
|
||||||
<div class="contextual">
|
<div class="contextual">
|
||||||
<%= l(:label_export_to) %>
|
<%= l(:label_export_to) %>
|
||||||
<%= link_to 'HTML', {:export => 'html'}, :class => 'icon icon-html' %>,
|
<%= link_to 'HTML', {:export => 'html', :version => @content.version}, :class => 'icon icon-html' %>,
|
||||||
<%= link_to 'TXT', {:export => 'txt'}, :class => 'icon icon-txt' %>
|
<%= link_to 'TXT', {:export => 'txt', :version => @content.version}, :class => 'icon icon-txt' %>
|
||||||
</div>
|
</div>
|
||||||
Reference in new issue
Block a user