Export with no layout option in the export_html
This commit is contained in:
parent
d3fc0c40a2
commit
8827f61b70
2 changed files with 15 additions and 1 deletions
|
@ -49,7 +49,7 @@ class WikiController < ApplicationController
|
|||
export_pages_as_zip('html') do |page|
|
||||
@page = page
|
||||
@link_mode = :export
|
||||
render_to_string('wiki/print', use_layout = true)
|
||||
render_to_string('wiki/print', use_layout = (@params['layout'] != 'no'))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue