diff --git a/plugins/mezuro/public/javascripts/project_content.js b/plugins/mezuro/public/javascripts/project_content.js index c3fbf20..9c1fc91 100644 --- a/plugins/mezuro/public/javascripts/project_content.js +++ b/plugins/mezuro/public/javascripts/project_content.js @@ -22,7 +22,7 @@ function display_metric_history() { } function display_grade_history() { - var module_name = jQuery(this).attr('show-grade-history'); + var module_name = jQuery(this).attr('data-module-name'); callAction('module_grade_history', {module_name: module_name}, show_grades); return false; } diff --git a/plugins/mezuro/views/content_viewer/_module_result.rhtml b/plugins/mezuro/views/content_viewer/_module_result.rhtml index 4377b7e..2eacd7e 100644 --- a/plugins/mezuro/views/content_viewer/_module_result.rhtml +++ b/plugins/mezuro/views/content_viewer/_module_result.rhtml @@ -4,7 +4,7 @@
<%= _('Metric results for: ') + module_label %>

- +
@@ -43,7 +43,7 @@
- + <%= _('Grade:') %> <%= "%.02f" % module_result.grade %> @@ -53,3 +53,4 @@
+
diff --git a/plugins/mezuro/views/content_viewer/_score_history.rhtml b/plugins/mezuro/views/content_viewer/_score_history.rhtml index 27581c1..698fe17 100644 --- a/plugins/mezuro/views/content_viewer/_score_history.rhtml +++ b/plugins/mezuro/views/content_viewer/_score_history.rhtml @@ -1,3 +1,2 @@ - -
<%= MezuroPlugin::Helpers::ContentViewerHelper.generate_chart(score_history) %>
- +<%= image_tag(MezuroPlugin::Helpers::ContentViewerHelper.generate_chart(score_history)) %> + -- libgit2 0.21.2