From 82f8396b1e2fcf72e584ea746c4d4c675b95284f Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 28 May 2018 09:12:06 +0000 Subject: default link color;neighbors and batch details modal;table word wrap --- application.rb | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'application.rb') diff --git a/application.rb b/application.rb index 8223bbe..bd2ae54 100644 --- a/application.rb +++ b/application.rb @@ -70,10 +70,11 @@ get '/task/?' do compound = Compound.find prediction_object.compound model = Model::Validation.find prediction_object.model image = compound.svg + details = "" smiles = compound.smiles type = (model.regression? ? "Regression" : "Classification") - html = "" - html += "" + html = "
#{image}
#{smiles}
" + html += "" string = "
#{details}
#{smiles}
" sorter = [] if prediction[:info] @@ -129,6 +130,18 @@ get '/predict/modeldetails/:model' do return haml :model_details, :layout=> false, :locals => {:model => model, :crossvalidations => crossvalidations} end +get '/prediction/:compound/details/?' do + @compound = Compound.find params[:compound] + @smiles = @compound.smiles + begin + @names = @compound.names.nil? ? "No names for this compound available." : @compound.names + rescue + @names = "No names for this compound available." + end + @inchi = @compound.inchi.gsub("InChI=", "") + haml :details, :layout => false +end + get '/jme_help/?' do File.read(File.join('views','jme_help.html')) end -- cgit v1.2.3