From 3e91ce8f09ff0830a87c4e337b678810d5de0f6c Mon Sep 17 00:00:00 2001 From: gebele Date: Fri, 23 Oct 2015 09:31:12 +0000 Subject: moved model details to new file and call it onclick;makup validated but svg images not;consistent layout --- views/neighbors.haml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'views/neighbors.haml') 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
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 -- cgit v1.2.3