comparison app/controllers/previews_controller.rb @ 51:371eac10df0b live

* Merge from "cannam" branch. This includes update to Redmine trunk, plus welcome/tip-of-the-day from luisf branch.
author Chris Cannam
date Wed, 24 Nov 2010 12:20:08 +0000
parents 94944d00e43c
children cbce1fd3b1b7
comparison
equal deleted inserted replaced
34:09b1d4349da3 51:371eac10df0b
14 @description = (params[:issue] ? params[:issue][:description] : nil) 14 @description = (params[:issue] ? params[:issue][:description] : nil)
15 end 15 end
16 render :layout => false 16 render :layout => false
17 end 17 end
18 18
19 def news
20 @text = (params[:news] ? params[:news][:description] : nil)
21 render :partial => 'common/preview'
22 end
23
19 private 24 private
20 25
21 def find_project 26 def find_project
22 project_id = (params[:issue] && params[:issue][:project_id]) || params[:project_id] 27 project_id = (params[:issue] && params[:issue][:project_id]) || params[:project_id]
23 @project = Project.find(project_id) 28 @project = Project.find(project_id)