summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
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]