summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2016-04-15 09:59:43 +0000
committergebele <gebele@in-silico.ch>2016-04-15 09:59:43 +0000
commitdf8ed98fcc052da2641c26897a8dd0592f274e53 (patch)
treefab67ee95f1e73af49f9e2d4c0c121ebe2be3eb7 /application.rb
parent4a108bd930a367cad06b3ef0208c7b7760753329 (diff)
reactivated info buttons; changed unit for fish; introduced FAQ
Diffstat (limited to 'application.rb')
-rw-r--r--application.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/application.rb b/application.rb
index 6c6a73f..cebe4f2 100644
--- a/application.rb
+++ b/application.rb
@@ -1,4 +1,5 @@
require_relative 'helper.rb'
+require 'rdiscount'
include OpenTox
#require File.join(ENV["HOME"],".opentox","config","lazar-gui.rb") # until added to ot-tools
@@ -304,6 +305,11 @@ post '/predict/?' do
end
end
+get '/faq' do
+ @faq = RDiscount.new(File.read("FAQ.md")).to_html
+ haml :faq, :layout => :faq_layout
+end
+
get '/style.css' do
headers 'Content-Type' => 'text/css; charset=utf-8'
scss :style