diff --git a/app/controllers/modules_controller.rb b/app/controllers/modules_controller.rb
new file mode 100644
index 0000000..6896737
--- /dev/null
+++ b/app/controllers/modules_controller.rb
@@ -0,0 +1,8 @@
+class ModulesController < ApplicationController
+
+ # GET /modules/metric_history
+ def metric_history
+
+ end
+
+end
\ No newline at end of file
diff --git a/app/views/repositories/_metric_result.html.erb b/app/views/repositories/_metric_result.html.erb
index df2fcfc..cd64484 100644
--- a/app/views/repositories/_metric_result.html.erb
+++ b/app/views/repositories/_metric_result.html.erb
@@ -2,7 +2,10 @@
<% unless metric_configuration_snapshot.range_snapshot.nil? %>
<% range_snapshot = find_range_snapshot(metric_result) %>
- <%= link_to metric_configuration_snapshot.metric.name, "#metric_#{module_result.id}", onclick: "chart_of_the_historic_of_metric(#{metric_result.id},\'#{metric_configuration_snapshot.metric.name}\', \'#{module_result.module.name}\', '12/09/2012,21/10/2013,30/05/2013','12.7,13,20')", id: "metirc_#{module_result.id}" %> |
+ <%= link_to metric_configuration_snapshot.metric.name, "#metric_#{module_result.id}",
+ onclick: "chart_of_the_historic_of_metric(#{metric_result.id},\'#{metric_configuration_snapshot.metric.name}\', \'#{module_result.module.name}\', '12/09/2012,21/10/2013,30/05/2013','12.7,13,20')",
+ id: "metirc_#{module_result.id}",
+ remote: true %> |
<%= format_grade(metric_result.value) %> |
<%= metric_configuration_snapshot.weight %> |
<%= range_snapshot.label %> |
diff --git a/config/routes.rb b/config/routes.rb
index 763b0c8..3654ed1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -10,7 +10,11 @@ Mezuro::Application.routes.draw do
put '/repositories/:id' => 'repositories#update', as: :repository_update
end
+ #resources :modules
+ get '/modules/metric_history' => 'modules#metric_history'
+
root "home#index"
+
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
--
libgit2 0.21.2