diff --git a/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb b/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb
index 68fb686..95e2798 100644
--- a/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb
+++ b/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb
@@ -128,9 +128,10 @@ class MezuroPluginProfileController < ProfileController
metric_name = params[:metric_name]
content = profile.articles.find(params[:id])
module_history = content.result_history(params[:module_name])
- metric_history = module_history.collect { |x| (x.metric_results.select { |y| y.metric.name == metric_name })[0] }
+ date_history = module_history.collect { |x| x.date }
+ metric_history = module_history.collect { |x| (x.metric_results.select { |y| y.metric.name.delete("() ") == metric_name })[0] }
#precisamos que uma variável receba um array com os valores da métrica passada a partir do result history
- render :partial => 'content_viewer/metric_history', :locals => {:metric_history => metric_history }
+render :partial => 'content_viewer/metric_history', :locals => {:metric_history => metric_history, :date_history => date_history }
end
end
diff --git a/plugins/mezuro/views/content_viewer/_metric_history.rhtml b/plugins/mezuro/views/content_viewer/_metric_history.rhtml
index 2c5beb5..4293aff 100644
--- a/plugins/mezuro/views/content_viewer/_metric_history.rhtml
+++ b/plugins/mezuro/views/content_viewer/_metric_history.rhtml
@@ -1,2 +1,14 @@
-
-
<%= date %> | + <% end %> +
+ <%= MezuroPlugin::Helpers::ContentViewerHelper.format_grade(metric_result.value) %> + | + <% end %> +