summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavor <vorgrimmlerdavid@gmx.de>2012-05-31 11:38:05 +0200
committerdavor <vorgrimmlerdavid@gmx.de>2012-05-31 11:38:05 +0200
commit38d42d1248018b180e0dc2007e0b848fe169063e (patch)
tree05259144ba9c12b163b940903fa33def90a91d8d
parent7a02a9f68faad79c2840128e7a02aee2a73af6fb (diff)
Bad fix for Nestle VA
To display compound images without hostname.
-rw-r--r--views/compound_image.haml5
-rw-r--r--views/prediction.haml2
2 files changed, 5 insertions, 2 deletions
diff --git a/views/compound_image.haml b/views/compound_image.haml
index 25e0dbf..178239f 100644
--- a/views/compound_image.haml
+++ b/views/compound_image.haml
@@ -1 +1,4 @@
-%img{:src => compound.matching_smarts_image_uri(features[:activating].collect{|f| f[:smarts]},features[:deactivating].collect{|f| f[:smarts]}), :alt => compound.to_smiles}
+%img{:src => compound.to_image_uri.split("8080").last, :alt => compound.to_smiles}
+-# Bad fix for Nestle VA
+-#%img{:src => compound.matching_smarts_image_uri(features[:activating].collect{|f| f[:smarts]},features[:deactivating].collect{|f| f[:smarts]}), :alt => compound.to_smiles}
+
diff --git a/views/prediction.haml b/views/prediction.haml
index b83bc63..efa5a84 100644
--- a/views/prediction.haml
+++ b/views/prediction.haml
@@ -7,7 +7,7 @@
= @identifier
%tr
%td
- %img{:src => @compound.to_image_uri, :alt => @compound.to_smiles}
+ %img{:src => @compound.to_image_uri.split("8080").last, :alt => @compound.to_smiles}
- @predictions.each do |p|
- LOGGER.debug p.to_yaml
%td