From 9f3d87d51b1a8847eb409b6caee558ae6ab90164 Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 4 May 2016 15:56:02 +0000 Subject: added license to GUI --- application.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'application.rb') 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 = [] -- cgit v1.2.3