summaryrefslogtreecommitdiff
path: root/views/assays.haml
blob: 5e7361fbc02d98079f33c0a5a612dbcc50b29e8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%dl
  - @assays.sort{|a,b| a["Assay Name"] <=> b["Assay Name"]}.each do |assay|
    %dt
      %a{:href => "http://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=#{assay["AID"]}", :rel => "_blank"} #{assay['Assay Name']}
      :javascript
        $('A[rel="_blank"]').each(function(){
          $(this).attr('target', '_blank');
        });
    %dd
      Assay ID:
      %a{:href => "http://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=#{assay["AID"]}", :rel => "_blank"} #{assay['AID']}
      :javascript
        $('A[rel="_blank"]').each(function(){
          $(this).attr('target', '_blank');
        });