diff options
author | gebele <gebele@in-silico.ch> | 2016-05-04 15:56:02 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2016-05-04 15:56:02 +0000 |
commit | 9f3d87d51b1a8847eb409b6caee558ae6ab90164 (patch) | |
tree | 7bb0f16ef467da1f8bfdb288cf0e065c19e86064 /application.rb | |
parent | 288dc2147651dc46bf62b5dda61045dbf510a45b (diff) |
added license to GUI
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/application.rb b/application.rb index 5bb201c..225776d 100644 --- a/application.rb +++ b/application.rb @@ -1,4 +1,5 @@ require 'json' +require 'rdiscount' require_relative './nanoparticles.rb' $ambit_search = "http://data.enanomapper.net/substance?type=name&search=" @@ -19,6 +20,11 @@ get '/predict/?' do haml :predict end +get '/license' do + @license = RDiscount.new(File.read("LICENSE.md")).to_html + haml :license, :layout => false +end + post '/predict/?' do size = params[:size].to_i @input = [] |