summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-11-24 13:10:52 +0100
committerChristoph Helma <helma@in-silico.ch>2010-11-24 13:10:52 +0100
commit1952b3ed877e4791429512def5bd7102e4ba7a99 (patch)
tree624d3fde40b7abd2ae902e9635b1a1dcfa5df2b0 /views/prediction.haml
parent99e3566a11a1d51df91a6d3d016e8ec260920020 (diff)
opentox-ruby-api-wrapper renamed to opentox-ruby
Diffstat (limited to 'views/prediction.haml')
-rw-r--r--views/prediction.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/views/prediction.haml b/views/prediction.haml
index 0140b5e..8498abc 100644
--- a/views/prediction.haml
+++ b/views/prediction.haml
@@ -7,8 +7,9 @@
= @identifier
%tr
%td
- %img{:src => @compound.image_uri, :alt => @compound.smiles}
+ %img{:src => @compound.to_image_uri, :alt => @compound.to_smiles}
- @predictions.each do |p|
+ - LOGGER.debug p.to_yaml
%td
%b
= p[:title] + ":"
@@ -25,8 +26,8 @@
});
)
- - elsif p[:prediction].to_s.match(/not available/)
- = p[:prediction]
+ - elsif p[:error]
+ %br= p[:error]
- else
= activity_markup(p[:prediction])
- if p[:confidence]