Commit 1411229f7274d648e44b73f32d4e1ad0aca988fa
Committed by
Paulo Meireles
1 parent
4e7213ba
Exists in
staging
and in
42 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 | 16 | end |
| 17 | 17 | |
| 18 | 18 | def project_result |
| 19 | + | |
| 19 | 20 | content = profile.articles.find(params[:id]) |
| 20 | 21 | project_result = content.project_result |
| 21 | 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 | 27 | end |
| 24 | 28 | |
| 25 | 29 | def module_result | ... | ... |
plugins/mezuro/views/content_viewer/_project_result.rhtml