summaryrefslogtreecommitdiff
path: root/views/details.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/details.haml')
-rw-r--r--views/details.haml26
1 files changed, 14 insertions, 12 deletions
diff --git a/views/details.haml b/views/details.haml
index ffa347c..028b5b1 100644
--- a/views/details.haml
+++ b/views/details.haml
@@ -1,15 +1,17 @@
%link{ :href=>"/stylesheets/screen.css", :media=>"screen, projection", :rel=>"stylesheet", :type=>"text/css"}
+.content
+ .details
+ %h2
+ Details:
+ %img{:src=>"#{@compound_uri.uri}/image", :alt=>@compound_uri.uri, :width=>"100px"}
+ %p
+ SMILES:
+ = @compound_uri.smiles
-.details
- %img{:src=>"#{@compound.uri}/image", :alt=>@compound.uri, :width=>"100px"}
- %p
- SMILES:
- = @compound.smiles
+ %p
+ // TODO handle OpenTox::ResourceNotFoundError
+ Names:
+ = @compound_uri.names
- %p
- // TODO handle OpenTox::ResourceNotFoundError
- Names:
- = @compound.names
-
- %p
- = @compound.inchi.gsub("InChI=", "InChI: ")
+ %p
+ = @compound_uri.inchi.gsub("InChI=", "InChI: ")