Commit 1411229f7274d648e44b73f32d4e1ad0aca988fa

Authored by Caio Salgado + Renan Teruo + Jefferson Fernandes
Committed by Paulo Meireles
1 parent 4e7213ba

[Mezuro] Controller now gets project history from Kalibro, view is not working properly

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
  1 +<%= options_from_collection_for_select(history, :date, :date) %>
  2 +
1 <h4><%= _('Last Result') %></h4> 3 <h4><%= _('Last Result') %></h4>
2 4
3 <table> 5 <table>