sanger/sequencescape

View on GitHub
app/views/shared/poly_metadata/show/_study.html.erb

Summary

Maintainability
Test Coverage
<%# This partial contains poly_metadata summary for a study. It is included
in the study details listing.

The key assignment is used to avoid repetition of the key string.

If the value of a poly_metadatum is blank, 'Not specified' is displayed.
%>
<% key = 'scrna_core_pbmc_donor_pooling_required_number_of_cells' %>
<table width="100%" cellspacing="0" cellpadding="0" class="property_group_general">
  <tr>
    <td class="item" width="40%"><%= 'scRNA Core PBMC donor pooling required number of cells' %>:</td>
    <td width="60%"><%= @study.poly_metadatum_by_key(key)&.value || 'Not specified' %></td>
  </tr>
</table>