diff options
author | gebele <gebele@in-silico.ch> | 2013-03-21 15:37:28 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-03-21 15:37:28 +0100 |
commit | e18adec09d77c2461ba15a2a5d02734d4015327e (patch) | |
tree | 7027953ee1dea1675dcc975c3e8652c9026a713f /views/details.haml | |
parent | 84bb7c7ff4afcb1ad7ad1c68f0eb778c64f63183 (diff) |
3bloc result view
Diffstat (limited to 'views/details.haml')
-rw-r--r-- | views/details.haml | 26 |
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: ") |