Commit 6857f7706ac34ce35f7b0036381769678e0eefb8
Committed by
Paulo Meireles
1 parent
efbb3df7
Exists in
master
and in
29 other branches
Show comments on the metric labels
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
plugins/mezuro/views/content_viewer/_module_result.rhtml
@@ -16,11 +16,11 @@ | @@ -16,11 +16,11 @@ | ||
16 | </thead> | 16 | </thead> |
17 | <tbody> | 17 | <tbody> |
18 | <% module_result.metric_results.each do |metric_result| %> | 18 | <% module_result.metric_results.each do |metric_result| %> |
19 | - <tr> | 19 | + <% range = metric_result.range %> |
20 | + <tr title=" <%= range.comments %>"> | ||
20 | <td><%= metric_result.metric.name %></td> | 21 | <td><%= metric_result.metric.name %></td> |
21 | <td><%= metric_result.value %></td> | 22 | <td><%= metric_result.value %></td> |
22 | <td><%= metric_result.weight %></td> | 23 | <td><%= metric_result.weight %></td> |
23 | - <% range = metric_result.range %> | ||
24 | <td style="background-color: #<%= range.color[2..-1] %>"><%= range.label %></td> | 24 | <td style="background-color: #<%= range.color[2..-1] %>"><%= range.label %></td> |
25 | </tr> | 25 | </tr> |
26 | <% end %> | 26 | <% end %> |