diff options
author | gebele <gebele@in-silico.ch> | 2015-10-23 09:31:12 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2015-10-23 09:31:12 +0000 |
commit | 3e91ce8f09ff0830a87c4e337b678810d5de0f6c (patch) | |
tree | ecfb770fd5ac688093747495097f8c066d06f3eb /application.rb | |
parent | 721f6d9263d0198efc96177a22e0fc23508695df (diff) |
moved model details to new file and call it onclick;makup validated but svg images not;consistent layout
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |