summaryrefslogtreecommitdiff
path: root/views/details.haml
blob: 8ef0ffd0d39ded71bd93f978e8df09079f644763 (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
%link{ :href=>"/style.css", :media=>"screen, projection", :rel=>"stylesheet", :type=>"text/css"}

.content{:style=>"margin-top:0;"}
  .details{:style=>"padding:0.5em;height:100%;"}
    %button{:id=>"closebutton", :onclick=>"parent.$('#iframe_details').bPopup().close();parent.$('#iframe_overview').bPopup().close();"}
      X
      
    %h2{:style=>"margin-left:8px;"}
      Names and synonyms:
    %img{:src=>"#{@compound.uri}/image", :alt=>"Compound image not available", :width=>"300px", :heigth=>"300px"}
    %p
    %b="SMILES:"
    %p= @smiles
    %br
    %b="InChI:"
    %p= @inchi
    %br
    %b="Names:"
    %p{:style=>"padding-left:0.5em;"}
    - if @names !~ /^no names/i
      = @names.join("; ")
    - else
      = @names
    %p{:style=>"padding-left:0.5em;"}
      / pubchem link
      %a{:href=>"http://aop.in-silico.ch/", :title=>"Link opens in new window.", :alt=>"pubchem read across", :target=>"_blank"} PubChem read across 
      %i (experimental)