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:
Jean-Philippe Lang committed 2007-03-06 20:23:42 +00:00
1 parent 67b92ae1df
commit 46b13d9f4a
9 files changed
+35 -7

No files matched your search

+6 -1
View File
@@ -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