summaryrefslogtreecommitdiff
path: root/views/neighbors.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/neighbors.haml')
-rw-r--r--views/neighbors.haml11
1 files changed, 5 insertions, 6 deletions
diff --git a/views/neighbors.haml b/views/neighbors.haml
index 70bf4b8..bdc7f65 100644
--- a/views/neighbors.haml
+++ b/views/neighbors.haml
@@ -50,7 +50,7 @@
Similarity
/ %th{:style =>"vertical-align:middle;"}
/ Supporting Information
- %info
+ %span
%tr
%td
%td{:style=>"font-size:x-small;padding:0px;"}
@@ -68,16 +68,15 @@
%p= Compound.find(neighbor[0]).smiles
/ Measured Activity
%td{:style =>"vertical-align:middle;padding-left:1em;width:20%;"}
- //= neighbor[2].collect{|n| '%.2e' % n}.join ", "
- //= neighbor[2].join ", "
- = (@type == "Regression") ? neighbor[2].collect{|n| n.round(2)}.join(", ") : neighbor[2].join(", ")
+ = (@type == "Regression") ? neighbor[2].collect{|n| '%.2e' % n}.join(", ") : neighbor[2].join(", ")
/ Similarity
%td{:style =>"vertical-align:middle;padding-left:1em;width:20%;"}
/ TODO differentiate between no neighbors found and compound found in dataset, display neighbors for compounds in dataset?
- = neighbor[1] != nil ? neighbor[1].round(2) : "Not enough similar compounds in training dataset."
+ = neighbor[1] != nil ? neighbor[1].round(2) : "Not enough similar compounds </br>in training dataset."
- else
- %span.btn.btn-default.disabled Not enough similar compounds in training dataset
+ %span.btn.btn-default.disabled
+ = "Not enough similar compounds in training dataset"
%div.modal.fade{:id=>"details#{j+1}", :role=>"dialog"}
%div.modal-dialog.modal-lg