From 077b3df7858240a3082a4bcdbdfb388c7cb06c1f Mon Sep 17 00:00:00 2001 From: João M. M. Silva + Caio Salgado Date: Wed, 9 May 2012 15:38:15 -0300 Subject: [PATCH] [Mezuro] added button to grade history --- plugins/mezuro/public/javascripts/project_content.js | 6 ++++++ plugins/mezuro/views/content_viewer/_module_result.rhtml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/mezuro/public/javascripts/project_content.js b/plugins/mezuro/public/javascripts/project_content.js index e4cce62..68ec968 100644 --- a/plugins/mezuro/public/javascripts/project_content.js +++ b/plugins/mezuro/public/javascripts/project_content.js @@ -4,6 +4,7 @@ jQuery(function (){ jQuery('.source-tree-link').live("click", reloadModule); jQuery('[data-show]').live("click", toggle_mezuro); jQuery('[show-metric-history]').live("click", display_metric_history); + jQuery('[show-grade-history]').live("click", display_grade_history); showLoadingProcess(true); showProjectContent(); }); @@ -20,6 +21,11 @@ function display_metric_history() { return false; } +function display_grade_history() { + alert(jQuery(this).attr('show-grade-history')); + return false; +} + function show_metrics(content) { jQuery('#historical-' + metricName).html(content); } diff --git a/plugins/mezuro/views/content_viewer/_module_result.rhtml b/plugins/mezuro/views/content_viewer/_module_result.rhtml index cc1f544..e22f9e1 100644 --- a/plugins/mezuro/views/content_viewer/_module_result.rhtml +++ b/plugins/mezuro/views/content_viewer/_module_result.rhtml @@ -39,11 +39,12 @@ - + <%= _('Grade:') %> <%= "%.02f" % module_result.grade %> + -- libgit2 0.21.2