summaryrefslogtreecommitdiff
path: root/views/details.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-09-25 00:12:04 +0200
committergebele <gebele@in-silico.ch>2013-09-25 00:12:04 +0200
commit13ffab048630cc30a4af9e9113c1843ae5af0a09 (patch)
tree7f8ad39ed45eac0c3cb11ece7928d3769c875d92 /views/details.haml
parent42a6facfda144d0ed70063fd5b3887697578faa3 (diff)
several major changes in code, several minor changes in style; prepared for OT meeting
Diffstat (limited to 'views/details.haml')
-rw-r--r--views/details.haml21
1 files changed, 13 insertions, 8 deletions
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)
+