genome/dgi-db

View on GitHub
app/views/interaction_claims/_interaction_results_table.html.haml

Summary

Maintainability
Test Coverage
.well
  %p
    %h3
      =title
      %small
        %strong
          %i.icon-flag.tip{title: tooltip_text}
    %small
      %strong
        %em
          =subtitle
  %table.table.table-striped.table-bordered{cellpadding: "0", cellspacing: "0", border: "0", id: export_id}
    =render partial: 'shared/table_export', locals: {id: export_id}
    %thead
      %tr
        %th
          Search Term
          %i.icon-flag.tip{title: tx("search_term_table_header_flag")}
        - if @search_mode == 'genes'
          %th
            Gene
            %i.icon-flag.tip{title: tx("gene_table_header_flag")}
          %th
            Drug
            %i.icon-flag.tip{title: tx("drug_table_header_flag")}
        - else
          %th
            Drug
            %i.icon-flag.tip{title: tx("drug_table_header_flag")}
          %th
            Gene
            %i.icon-flag.tip{title: tx("gene_table_header_flag")}
        %th
          Interaction Type
          %i.icon-flag.tip{title: tx("interaction_table_header_flag")}
        %th
          Source
          %i.icon-flag.tip{title: tx("source_table_header_flag")}
        - if @search_mode == 'genes'
          %th{style: 'display: none;'}
            Gene Symbol
          %th{style: 'display: none;'}
            Full Gene Name
        - else
          %th{style: 'display: none;'}
            Drug Name
        %th{style: 'display: none;'}
          Source Version
        %th
          PubMed IDs
          %i.icon-flag.tip{title: tx("pmid_table_header_flag")}
    %tbody
      =render partial: 'interaction_claims/interaction_table_row', collection: interactions