Commit b6e9f46e4a7aaf252e12bf577a78a619a7e968c5

Authored by João M. M. Silva + Rafael Manzo
Committed by Paulo Meireles
1 parent 07d86c88

[Mezuro] fixed reload history by date implementation

plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb
@@ -26,16 +26,16 @@ class MezuroPluginProfileController < ProfileController @@ -26,16 +26,16 @@ class MezuroPluginProfileController < ProfileController
26 26
27 def module_result 27 def module_result
28 content = profile.articles.find(params[:id]) 28 content = profile.articles.find(params[:id])
29 -# date = params[:date]  
30 -# project_result = date.nil? ? content.project_result : content.get_date_module_results(date) 29 + date = params[:date]
  30 + project_result = date.nil? ? content.project_result : content.get_date_result(date)
31 module_result = content.module_result(params[:module_name]) 31 module_result = content.module_result(params[:module_name])
32 render :partial => 'content_viewer/module_result', :locals => { :module_result => module_result} 32 render :partial => 'content_viewer/module_result', :locals => { :module_result => module_result}
33 end 33 end
34 34
35 def project_tree 35 def project_tree
36 content = profile.articles.find(params[:id]) 36 content = profile.articles.find(params[:id])
37 -# date = params[:date]  
38 -# project_result = date.nil? ? content.project_result : content.get_date_project_tree(date) 37 + date = params[:date]
  38 + project_result = date.nil? ? content.project_result : content.get_date_result(date)
39 project_result = content.project_result 39 project_result = content.project_result
40 source_tree = project_result.node_of(params[:module_name]) 40 source_tree = project_result.node_of(params[:module_name])
41 render :partial =>'content_viewer/source_tree', :locals => { :source_tree => source_tree, :project_name => content.project.name} 41 render :partial =>'content_viewer/source_tree', :locals => { :source_tree => source_tree, :project_name => content.project.name}