summaryrefslogtreecommitdiff
path: root/views/predict.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/predict.haml')
-rw-r--r--views/predict.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/predict.haml b/views/predict.haml
index fe84e89..f326bf8 100644
--- a/views/predict.haml
+++ b/views/predict.haml
@@ -41,7 +41,12 @@
2. Select one or more toxic endpoints
%br
+ - endpoint = ''
- @models.each do |model|
+ -if model.endpoint != endpoint
+ -endpoint = model.endpoint
+ %b #{endpoint}:
+ %br
%input{:type => 'checkbox', :name => "selection[#{model.id}]", :value => true, :id => "model#{model.id}", :disabled => false}
%label{:for => "model#{model.id}"}
= model.name