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 --- application.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'application.rb') diff --git a/application.rb b/application.rb index 8168c52..9c9cabb 100644 --- a/application.rb +++ b/application.rb @@ -29,6 +29,11 @@ get '/predict/?' do @models.count <= 0 ? (haml :info) : (haml :predict) end +get '/predict/modeldetails/:model' do + model = OpenTox::Model::Prediction.find params[:model] + return haml :model_details, :layout=> false, :locals => {:model => model} +end + get '/jme_help/?' do File.read(File.join('views','jme_help.html')) end -- cgit v1.2.3