summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/prediction.haml')
-rw-r--r--views/prediction.haml9
1 files changed, 3 insertions, 6 deletions
diff --git a/views/prediction.haml b/views/prediction.haml
index f9807b4..191ff15 100644
--- a/views/prediction.haml
+++ b/views/prediction.haml
@@ -10,12 +10,9 @@
%i.glyphicon.glyphicon-menu-left
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 </br>in training dataset."
/ always show the neighbors table, message is given there
= haml :neighbors, :layout => false, :model_type => @model_type