added "preview" functionality when editing wiki page
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@306 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
67b92ae1df
commit
46b13d9f4a
9 files changed
+35
-7
No files matched your search
@@ -17,7 +17,7 @@
|
||||
|
||||
class WikiController < ApplicationController
|
||||
layout 'base'
|
||||
before_filter :find_wiki, :check_project_privacy
|
||||
before_filter :find_wiki, :check_project_privacy, :except => [:preview]
|
||||
|
||||
# display a page (in editing mode if it doesn't exist)
|
||||
def index
|
||||
@@ -88,6 +88,11 @@ class WikiController < ApplicationController
|
||||
end
|
||||
render :action => "special_#{page_title}"
|
||||
end
|
||||
|
||||
def preview
|
||||
@text = params[:content][:text]
|
||||
render :partial => 'preview'
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
|
||||
Reference in new issue
Block a user