diff --git a/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb b/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb index 37825b7..076b120 100644 --- a/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb +++ b/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb @@ -123,5 +123,12 @@ class MezuroPluginProfileController < ProfileController range.comments = params[:range][:comments] range end -end + def get_module_metrics_history + content = profile.articles.find(params[:id]) + module_history = Kalibro::Client::ModuleResultClient.new + module_history.result_history(content.project.name, params[:module_name]) + render :partial => 'content_viewer/show_history', :locals => {:module_history => module_history } + end + +end diff --git a/plugins/mezuro/views/content_viewer/_module_result.rhtml b/plugins/mezuro/views/content_viewer/_module_result.rhtml index 8168a21..a367ebf 100644 --- a/plugins/mezuro/views/content_viewer/_module_result.rhtml +++ b/plugins/mezuro/views/content_viewer/_module_result.rhtml @@ -31,6 +31,12 @@
Draw Historical Graphic
+