Commit 98b10463bd64733da666726f6c6c20228b3fb3d2
Committed by
Paulo Meireles
1 parent
b612e786
Exists in
master
and in
29 other branches
[Mezuro] Added span to show range comment on mouse hover.
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
plugins/mezuro/views/mezuro_plugin_module/_module_result.rhtml
| ... | ... | @@ -19,7 +19,11 @@ |
| 19 | 19 | <td><a href="#" show-metric-history="<%= MezuroPlugin::Helpers::ContentViewerHelper.format_name(metric_result) %>" data-module-name="<%= @module.name %>"><%= metric_result.metric.name %></a></td> |
| 20 | 20 | <td><%= MezuroPlugin::Helpers::ContentViewerHelper.format_grade(metric_result.value) %></td> |
| 21 | 21 | <td><%= metric_result.weight %></td> |
| 22 | - <td style="background-color: #<%= range.color[2..-1] %>"><%= range.label %></td> | |
| 22 | + <td style="background-color: #<%= range.color[2..-1] %>"> | |
| 23 | + <span title="<%= range.comments %>" > | |
| 24 | + <%= range.label %> | |
| 25 | + </span> | |
| 26 | + </td> | |
| 23 | 27 | </tr> |
| 24 | 28 | <tr class="<%= MezuroPlugin::Helpers::ContentViewerHelper.format_name(metric_result) %>" style="display: none;"> |
| 25 | 29 | <td colspan="3"> | ... | ... |