genome/dgi-db

View on GitHub
app/views/drugs/_by_source_table.html.haml

Summary

Maintainability
Test Coverage
.well
  %table#table-by-source.table.table-striped.table-bordered(cellpadding="0" cellspacing="0" border="0")
    %thead
      %tr
        %th Name
        -drug.source_db_names.each do |name|
          %th=name
        %th Count
    %tbody
      =render partial: 'drugs/by_source_table_row', collection: drug.grouped_names