Commit ccbced56bb575500d04ad9190ad80efc4d1b4577
Committed by
Paulo Meireles
1 parent
808fe996
Exists in
master
and in
28 other branches
Adding range color as background
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
plugins/mezuro/views/content_viewer/show_project.rhtml
... | ... | @@ -85,7 +85,8 @@ |
85 | 85 | <tr> |
86 | 86 | <td><%= metric_result.metric.name %></td> |
87 | 87 | <td><%= metric_result.value %></td> |
88 | - <td><%= metric_result.range.label %></td> | |
88 | + <% range = metric_result.range %> | |
89 | + <td style="background-color: #<%= range.color[2..-1] %>"><%= range.label %></td> | |
89 | 90 | </tr> |
90 | 91 | |
91 | 92 | <% end %> | ... | ... |