code format cleanup WikiController
git-svn-id: http://svn.redmine.org/redmine/trunk@12618 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3e17eb2956
commit
2066969c7d
|
@ -284,7 +284,9 @@ class WikiController < ApplicationController
|
||||||
send_data(export, :type => 'text/html', :filename => "wiki.html")
|
send_data(export, :type => 'text/html', :filename => "wiki.html")
|
||||||
}
|
}
|
||||||
format.pdf {
|
format.pdf {
|
||||||
send_data(wiki_pages_to_pdf(@pages, @project), :type => 'application/pdf', :filename => "#{@project.identifier}.pdf")
|
send_data(wiki_pages_to_pdf(@pages, @project),
|
||||||
|
:type => 'application/pdf',
|
||||||
|
:filename => "#{@project.identifier}.pdf")
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -351,6 +353,10 @@ private
|
||||||
end
|
end
|
||||||
|
|
||||||
def load_pages_for_index
|
def load_pages_for_index
|
||||||
@pages = @wiki.pages.with_updated_on.reorder("#{WikiPage.table_name}.title").includes(:wiki => :project).includes(:parent).all
|
@pages = @wiki.pages.with_updated_on.
|
||||||
|
reorder("#{WikiPage.table_name}.title").
|
||||||
|
includes(:wiki => :project).
|
||||||
|
includes(:parent).
|
||||||
|
all
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue