From 13ffab048630cc30a4af9e9113c1843ae5af0a09 Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 25 Sep 2013 00:12:04 +0200 Subject: several major changes in code, several minor changes in style; prepared for OT meeting --- views/details.haml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'views/details.haml') diff --git a/views/details.haml b/views/details.haml index 931b0b2..5663c1f 100644 --- a/views/details.haml +++ b/views/details.haml @@ -1,15 +1,14 @@ %link{ :href=>"/stylesheets/screen.css", :media=>"screen, projection", :rel=>"stylesheet", :type=>"text/css"} .content - %button{:id=>"closebutton", :onclick=>"parent.$('#iframe').bPopup().close();parent.$('#iframe_overview').bPopup().close();"} + %button{:id=>"closebutton", :onclick=>"parent.$('#iframe_details').bPopup().close();parent.$('#iframe_overview').bPopup().close();"} X - .details - %h2{:style=>"margin-top:0px"} - Details: - %img{:src=>"#{@compound_uri.uri}/image", :alt=>"Compound image not available", :width=>"300px", :heigth=>"300px"} - %br - %br + .details{:style=>"padding:0.5em;min-height:400px;"} + %h2{:style=>"margin:0px;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 @@ -17,4 +16,10 @@ %p= @inchi %br %b="Names:" - %p= @names.gsub(",", ";\t") + %p{:style=>"padding-left:0.5em;"} + = @names + %p{:style=>"padding-left:0.5em;"} + / pubchem link + %a{:href=>"http://aop.in-silico.ch/", :title=>"link opens in new tab", :alt=>"pubchem link", :target=>"_blank"} PubChem read across + %i (experimental) + -- cgit v1.2.3