openSNP/snpr

View on GitHub
app/views/users/_variations.html.erb

Summary

Maintainability
Test Coverage
<div class="table-responsive">
    <table class="table table-hover">
        <thead>
            <tr>
                <th>Characteristic</th>
                <th>Variation</th>
            </tr>
        </thead>
        <% @user_phenotypes.each do |p| %>
        <tr>
            <td class="table-cell vertical-centered"><%= link_to Phenotype.find_by_id(p.phenotype_id).characteristic, Phenotype.find_by_id(p.phenotype.id) %></td>
            <td class="table-cell vertical-centered"><% if p.variation %><%= p.variation%><% else %>Undescribed.<% end %></td>
        </tr>
        <% end %>
    </table>
</div>