summaryrefslogtreecommitdiff
path: root/views/details.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-03-25 12:21:39 +0100
committergebele <gebele@in-silico.ch>2013-03-25 12:21:39 +0100
commit2b02d8fdafe4ea4d4027d5aa18d56fc77ec5ef9a (patch)
tree2ecf9ed0acdc6df4a3fbd0fc5a29264968e5e584 /views/details.haml
parent61d24d4825325b2e2bcd0c707c0bd37ec32483e5 (diff)
large neighbours table;popup for details
Diffstat (limited to 'views/details.haml')
-rw-r--r--views/details.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/details.haml b/views/details.haml
index 9c0a0c2..448e8a8 100644
--- a/views/details.haml
+++ b/views/details.haml
@@ -7,12 +7,12 @@
%img{:src=>"#{@compound_uri.uri}/image", :alt=>@compound_uri.uri, :width=>"100px"}
%p
SMILES:
- = @compound_uri.smiles
+ = @compound_uri.smiles if @compound_uri.smiles
%p
// TODO handle OpenTox::ResourceNotFoundError
Names:
- = @compound_uri.names
+ = @compound_uri.names if @compound_uri.names
%p
- = @compound_uri.inchi.gsub("InChI=", "InChI: ")
+ = @compound_uri.inchi.gsub("InChI=", "InChI: ") if @compound_uri.inchi