From e18adec09d77c2461ba15a2a5d02734d4015327e Mon Sep 17 00:00:00 2001 From: gebele Date: Thu, 21 Mar 2013 15:37:28 +0100 Subject: 3bloc result view --- views/details.haml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'views/details.haml') 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: ") -- cgit v1.2.3