From 746d4c25d3be92a93c11cd865b9f8e8111fe830c Mon Sep 17 00:00:00 2001 From: Diego + Renan Date: Fri, 23 Mar 2012 21:27:16 +0400 Subject: [PATCH] [Mezuro] Basic result number formatting of results and grade. --- plugins/mezuro/views/content_viewer/_module_result.rhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mezuro/views/content_viewer/_module_result.rhtml b/plugins/mezuro/views/content_viewer/_module_result.rhtml index cf4ec24..882869c 100644 --- a/plugins/mezuro/views/content_viewer/_module_result.rhtml +++ b/plugins/mezuro/views/content_viewer/_module_result.rhtml @@ -19,7 +19,7 @@ <% range = metric_result.range %> <%= metric_result.metric.name %> - <%= metric_result.value %> + <%= metric_result.value.to_f.round(2).to_s %> <%= metric_result.weight %> <% if range.nil? %> @@ -34,7 +34,7 @@ <%= _('Grade:') %> - <%= module_result.grade %> + <%= module_result.grade.to_f.round(2).to_s %> -- libgit2 0.21.2