From 38d42d1248018b180e0dc2007e0b848fe169063e Mon Sep 17 00:00:00 2001 From: davor Date: Thu, 31 May 2012 11:38:05 +0200 Subject: Bad fix for Nestle VA To display compound images without hostname. --- views/compound_image.haml | 5 ++++- views/prediction.haml | 2 +- 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 -- cgit v1.2.3