sanger/sequencescape

View on GitHub
app/views/plates/_quantity_in_nano_grams.html.erb

Summary

Maintainability
Test Coverage

<% if value %>
  <% if value < 500 %>
    <% colour = "red" %>
  <% elsif value < 1000 %>
    <% colour = "orange" %>
  <% else %>
    <% colour = "green" %>
  <% end %>
<% end %>
<td class="<%= colour %>"><%= value %></td>