Commit 1411229f7274d648e44b73f32d4e1ad0aca988fa
Committed by
Paulo Meireles
1 parent
4e7213ba
Exists in
master
and in
22 other branches
[Mezuro] Controller now gets project history from Kalibro, view is not working properly
Showing
2 changed files
with
7 additions
and
1 deletions
Show diff stats
plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb
| @@ -16,10 +16,14 @@ class MezuroPluginProfileController < ProfileController | @@ -16,10 +16,14 @@ class MezuroPluginProfileController < ProfileController | ||
| 16 | end | 16 | end |
| 17 | 17 | ||
| 18 | def project_result | 18 | def project_result |
| 19 | + | ||
| 19 | content = profile.articles.find(params[:id]) | 20 | content = profile.articles.find(params[:id]) |
| 20 | project_result = content.project_result | 21 | project_result = content.project_result |
| 21 | project = content.project | 22 | project = content.project |
| 22 | - render :partial => 'content_viewer/project_result', :locals => { :project_result => project_result } | 23 | + |
| 24 | + history = project_history project | ||
| 25 | + | ||
| 26 | + render :partial => 'content_viewer/project_result', :locals => { :project_result => project_result, :history => history } | ||
| 23 | end | 27 | end |
| 24 | 28 | ||
| 25 | def module_result | 29 | def module_result |
plugins/mezuro/views/content_viewer/_project_result.rhtml