From a1993ff4e81338115883fd931586a6421aeaab3b Mon Sep 17 00:00:00 2001 From: gebele Date: Thu, 26 Jul 2018 11:25:20 +0000 Subject: renamed endpoint --- application.rb | 1 - views/predict.haml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/application.rb b/application.rb index f30361e..4fb647f 100644 --- a/application.rb +++ b/application.rb @@ -38,7 +38,6 @@ get '/predict/?' do @existing_datasets = dataset_storage @models = Model::Validation.all @models = @models.delete_if{|m| m.model.name =~ /\b(Net cell association)\b/} - #endpoints = @models.collect{|m| m.endpoint =~ /LOAEL/ ? m.endpoint+" (lazar)" : m.endpoint} endpoints = @models.collect{|m| m.endpoint if m.endpoint != "Mutagenicity"}.compact endpoints << "Oral toxicity (Cramer rules)" endpoints << "Lowest observed adverse effect level (LOAEL) (Mazzatorta)" diff --git a/views/predict.haml b/views/predict.haml index 0afcc99..d9fe2d5 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -187,7 +187,7 @@ %div{:id=>endpoint.gsub(/\s+/, "_")} %h4.head-back=endpoint - if endpoint !~ /^Oral|Mazzatorta/ - - @models.select{|m| endpoint = endpoint.gsub("(lazar)","").strip if endpoint =~ /lazar/; m.endpoint == endpoint}.each do |model| + - @models.select{|m| m.endpoint == endpoint}.each do |model| %div.row{:id => model.id,:style=>"margin-bottom:1em;"} %span.col-lg-4.col-md-4.col-sm-4.col-xs-4 %input.check{:type => "checkbox", :name => "selection[#{model.id}]", :id => "selection[#{model.species.gsub(/\s+/, "_")}]", :value => true, :disabled => false} -- cgit v1.2.3