From 769f704a2b4e2d83256f580317ed8c0b48cc4f45 Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 8 Jun 2016 13:47:51 +0000 Subject: bumped version; added version to GUI --- VERSION | 2 +- application.rb | 1 + views/layout.haml | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 3eefcb9..7dea76e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.0 +1.0.1 diff --git a/application.rb b/application.rb index 1fa0663..b9c267c 100644 --- a/application.rb +++ b/application.rb @@ -25,6 +25,7 @@ get '/?' do end get '/predict/?' do + @version = File.read("VERSION").chomp @models = OpenTox::Model::Prediction.all @endpoints = @models.collect{|m| m.endpoint}.sort.uniq @models.count <= 0 ? (haml :info) : (haml :predict) diff --git a/views/layout.haml b/views/layout.haml index 13f351c..a40b68c 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -38,10 +38,11 @@ %div.row %div.col-md-8 Problems, bugs, ideas for improvements ? Please report at our - %a{:href => 'https://github.com/opentox/lazar-gui/issues', :rel => "external"} issue tracker. - or send us an email: + %a{:href => 'https://github.com/opentox/lazar-gui/issues', :rel => "external"} issue tracker + or send us an email %a{ :href=>"mailto:info@in-silico.ch", :target=>"_top"} %img.share{:src=>"/images/Email.png"} + (version #{@version}). %div.col-md-2 %div.col-md-2 %a{:href=>"https://twitter.com/intent/tweet?source=http%3A%2F%2Flazar.in-silico.ch&text=:%20http%3A%2F%2Flazar.in-silico.ch", :target=>"_blank", :title=>"Tweet"} -- cgit v1.2.3