Commit 40b4aab6092d828be4b74c770d1a21eee51b6d39
Committed by
Diego Camarinha
1 parent
2520e29b
Exists in
colab
and in
4 other branches
Fixed popover for mezuro range description
signed-off-by: Diego Araújo <diegoamc90@gmail.com>
Showing
6 changed files
with
14 additions
and
11 deletions
Show diff stats
1.23 KB
app/assets/javascripts/application.js
app/assets/stylesheets/bootstrap_and_overrides.css
| @@ -36,4 +36,8 @@ footer div { | @@ -36,4 +36,8 @@ footer div { | ||
| 36 | .field_with_errors .form-control{ | 36 | .field_with_errors .form-control{ |
| 37 | border-color: #B94A48; | 37 | border-color: #B94A48; |
| 38 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset; | 38 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset; |
| 39 | -} | ||
| 40 | \ No newline at end of file | 39 | \ No newline at end of file |
| 40 | +} | ||
| 41 | + | ||
| 42 | +.popover-title{ | ||
| 43 | + font-weight: bolder; | ||
| 44 | +} |
app/views/metric_configurations/_ranges.html.erb
| 1 | <tr> | 1 | <tr> |
| 2 | - <td style="color: #<%= mezuro_range.color %>"> | 2 | + <td> |
| 3 | <div> | 3 | <div> |
| 4 | - <a type="button" id="comments" rel="popover" data-placement="left" data-original-title="Comments" data-content="<%= mezuro_range.comments %>"> | ||
| 5 | - Popover on left | ||
| 6 | - </a> | 4 | + <a class="popover_element" rel="popover" data-placement="left" data-original-title="Comments" data-content="<%= mezuro_range.comments %>"><%= image_tag "magnifying_glass.png" %></a> |
| 5 | + <span style="color: #<%= mezuro_range.color %>"><%= mezuro_range.label %></span> | ||
| 7 | </div> | 6 | </div> |
| 8 | </td> | 7 | </td> |
| 9 | <td><%= mezuro_range.beginning %></td> | 8 | <td><%= mezuro_range.beginning %></td> |
| @@ -17,4 +16,4 @@ | @@ -17,4 +16,4 @@ | ||
| 17 | class: 'btn btn-danger' %> | 16 | class: 'btn btn-danger' %> |
| 18 | <% end %> | 17 | <% end %> |
| 19 | </td> | 18 | </td> |
| 20 | -</tr> | ||
| 21 | \ No newline at end of file | 19 | \ No newline at end of file |
| 20 | +</tr> |
app/views/metric_configurations/show.html.erb