summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-09-13 17:53:15 +0200
committergebele <gebele@in-silico.ch>2013-09-13 17:53:15 +0200
commit42a6facfda144d0ed70063fd5b3887697578faa3 (patch)
treee2e72da7fd190ca42ec8936838a013430a6380b3 /views
parent18afc02f6dffc544071e2bac764f8fdb639b7b15 (diff)
level save
Diffstat (limited to 'views')
-rw-r--r--views/details.haml13
-rw-r--r--views/predict.haml2
-rw-r--r--views/prediction.haml2
3 files changed, 7 insertions, 10 deletions
diff --git a/views/details.haml b/views/details.haml
index 0855bac..931b0b2 100644
--- a/views/details.haml
+++ b/views/details.haml
@@ -10,14 +10,11 @@
%img{:src=>"#{@compound_uri.uri}/image", :alt=>"Compound image not available", :width=>"300px", :heigth=>"300px"}
%br
%br
- %b
- SMILES:
+ %b="SMILES:"
%p= @smiles
%br
- %b
- Names:
- %p= @names.gsub(",", ";\t")
- %br
- %b
- InChI:
+ %b="InChI:"
%p= @inchi
+ %br
+ %b="Names:"
+ %p= @names.gsub(",", ";\t")
diff --git a/views/predict.haml b/views/predict.haml
index a5e8759..c37c61d 100644
--- a/views/predict.haml
+++ b/views/predict.haml
@@ -70,7 +70,7 @@
#models
%i Please observe validation report for model details.
- // TODO order models by echa endpoint currently manually added and to find in model.type[0].split("#").last
+ // TODO order models by echa endpoint currently manually added and to find in model.type
#endpoint
%b= "Carcinogenicity:"
- @models.each do |model|
diff --git a/views/prediction.haml b/views/prediction.haml
index 7f94a2e..f902504 100644
--- a/views/prediction.haml
+++ b/views/prediction.haml
@@ -46,7 +46,7 @@
- c = "carcinogen"
- else
- c = Array.new
- - c[0] = p.data_entries[0][0].round(3)
+ - c[0] = (p.data_entries[0][0].class == Float) ? p.data_entries[0][0].round(3) : (p.data_entries[0][0] != nil ? p.data_entries[0][0] : "no value")
%td
%b{:class => "title"}
= @@prediction_models[count].title.split(" ").first