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/prediction.haml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'views/prediction.haml') diff --git a/views/prediction.haml b/views/prediction.haml index 47bd9b7..191ff15 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -8,14 +8,11 @@ %div.well %a.btn.btn-warning{:href => to('/predict')} %i.glyphicon.glyphicon-menu-left - Make New Prediction + New Prediction / displays all prediction result in first table + %h3 Prediction Results: %div.table-responsive %table.table.table-bordered{:id=>"overview", :style=>"background-color:white;"} - %thead - %tr - %h3 Prediction Results: - %tbody %tr %td{:id=>"compound", :style=>"vertical-align:top;"} @@ -23,7 +20,7 @@ %p= @compound.smiles - @predictions.each_with_index do |prediction,i| - type = @models[i].model.class.to_s.match("Classification") ? "Classification" : "Regression" - %td{:style=>"vertical-align:top;"} + %td{:style=>"vertical-align:top;white-space:nowrap;"} %b{:class => "title"} = "#{@models[i].endpoint.gsub('_', ' ')} (#{@models[i].species})" %p @@ -61,7 +58,7 @@ %p - else %p - Not enough similar compounds in training dataset. + = "Not enough similar compounds
in training dataset." / always show the neighbors table, message is given there = haml :neighbors, :layout => false, :model_type => @model_type -- cgit v1.2.3