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