Mercurial > hg > soundsoftware-site
comparison app/controllers/.svn/text-base/previews_controller.rb.svn-base @ 41:7f0e922c8982 luisf
merged with new version from trunk
author | luisf |
---|---|
date | Fri, 19 Nov 2010 14:45:28 +0000 |
parents | 94944d00e43c |
children | cbce1fd3b1b7 |
comparison
equal
deleted
inserted
replaced
35:67e8aef29de9 | 41:7f0e922c8982 |
---|---|
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) |