summaryrefslogtreecommitdiff
path: root/views/neighbors.haml
blob: 7b9c79d21cefcc3103b023288b99567011466c4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%table
  - session[:compound].neighbors[0..10].each do |compound|
    %tr
      %th Structure
      %th Similarity
      %th Targets (experimental data)
      %th Other active assays (experimental data)

    %tr
      %td{:valign => "top"}
        %br= compound.name
        %img{:src => compound.image_uri}
      %td{:id => "sim#{compound.cid}", :valign => "top"}
        :javascript
          display("#sim#{compound.cid}", "/cid/#{session[:compound].cid}/cosine/#{compound.cid}");
      %td{:id => "targets#{compound.cid}", :valign => "top"}
        :javascript
          display("#targets#{compound.cid}", "/cid/#{compound.cid}/targets");
      %td{:id => "assays#{compound.cid}", :valign => "top"}
        :javascript
          display("#assays#{compound.cid}", "/cid/#{compound.cid}/other_active_assays");
    
    %tr
      %th 
      %th 
      %th Non-targets (experimental data)
      %th Other inactive assays (experimental data)

    %tr
      %td
      %td
      %td{:id => "targets#{compound.cid}", :valign => "top"}
        :javascript
          display("#targets#{compound.cid}", "/cid/#{compound.cid}/nontargets");
      %td{:id => "assays#{compound.cid}", :valign => "top"}
        :javascript
          display("#assays#{compound.cid}", "/cid/#{compound.cid}/other_inactive_assays");