summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2009-08-18 19:56:54 +0200
committerChristoph Helma <helma@in-silico.de>2009-08-18 19:56:54 +0200
commit9fa715016e9b7560186e56e6a130e8b8c9fdd798 (patch)
tree904705c191a76e3e26cef8bda7f2073665686ef1
Initial commit of new in-silico homepage
-rw-r--r--application.rb36
-rw-r--r--config.ru12
-rw-r--r--public/.sass-cache/f31c21c40b6671f8a8f0fab0bc9e095a65e6c9de/style.sasscbin0 -> 711 bytes
-rw-r--r--public/logo.jpgbin0 -> 4934 bytes
-rw-r--r--views/awards.haml4
-rw-r--r--views/contact.haml11
-rw-r--r--views/index.haml12
-rw-r--r--views/layout.haml38
-rw-r--r--views/links.haml15
-rw-r--r--views/publications.haml1
-rw-r--r--views/services.haml24
-rw-r--r--views/software.haml21
-rw-r--r--views/style.sass22
13 files changed, 196 insertions, 0 deletions
diff --git a/application.rb b/application.rb
new file mode 100644
index 0000000..b586b04
--- /dev/null
+++ b/application.rb
@@ -0,0 +1,36 @@
+[ 'rubygems', 'sinatra', 'haml','sass' ].each do |lib|
+ require lib
+end
+
+get '/?' do
+ haml :index
+end
+
+get '/software' do
+ haml :software
+end
+
+get '/services' do
+ haml :services
+end
+
+get '/publications' do
+ haml :publications
+end
+
+get '/contact' do
+ haml :contact
+end
+
+get '/links' do
+ haml :links
+end
+
+get '/awards' do
+ haml :awards
+end
+
+get '/style.css' do
+ header 'Content-Type' => 'text/css; charset=utf-8'
+ sass :style
+end
diff --git a/config.ru b/config.ru
new file mode 100644
index 0000000..95e58ae
--- /dev/null
+++ b/config.ru
@@ -0,0 +1,12 @@
+require 'rubygems'
+require 'sinatra'
+require 'application.rb'
+
+if ENV["RACK_ENV"] == 'production'
+ FileUtils.mkdir_p 'log' unless File.exists?('log')
+ log = File.new("log/sinatra.log", "a")
+ $stdout.reopen(log)
+ $stderr.reopen(log)
+end
+
+run Sinatra::Application
diff --git a/public/.sass-cache/f31c21c40b6671f8a8f0fab0bc9e095a65e6c9de/style.sassc b/public/.sass-cache/f31c21c40b6671f8a8f0fab0bc9e095a65e6c9de/style.sassc
new file mode 100644
index 0000000..7ed0245
--- /dev/null
+++ b/public/.sass-cache/f31c21c40b6671f8a8f0fab0bc9e095a65e6c9de/style.sassc
Binary files differ
diff --git a/public/logo.jpg b/public/logo.jpg
new file mode 100644
index 0000000..86f13cb
--- /dev/null
+++ b/public/logo.jpg
Binary files differ
diff --git a/views/awards.haml b/views/awards.haml
new file mode 100644
index 0000000..ac536a8
--- /dev/null
+++ b/views/awards.haml
@@ -0,0 +1,4 @@
+%ul
+ %li Research Price for Alternative Methods to Animal Experiments (German Federal Ministry on Consumer Protection, Food and Agriculture, 2005)
+ %li Research Prize for Cancer Research without Animal Experiments (Doctors Against Animal Experiments, 2006)
+
diff --git a/views/contact.haml b/views/contact.haml
new file mode 100644
index 0000000..1268169
--- /dev/null
+++ b/views/contact.haml
@@ -0,0 +1,11 @@
+%em in silico toxicology
+%br Christoph Helma
+%p
+ Altkircher Str. 4
+ %br CH-4052 Basel
+ %br Switzerland
+%p
+ Phone: +41-774339164
+ %br Email:
+ %a{ :href => "mailto:info@in-silico.de" } info@in-silico.de
+
diff --git a/views/index.haml b/views/index.haml
new file mode 100644
index 0000000..12ada8e
--- /dev/null
+++ b/views/index.haml
@@ -0,0 +1,12 @@
+%p
+ %em in silico
+ toxicology provides customised solutions
+ for the computer based prediction of toxic activities.
+
+ %em in silico
+ toxicology is a spin-off company of the
+ %a{ :href => "http://www.informatik.uni-freiburg.de/~ml/ml_engl.html", :target => "_top" } Machine Learning Lab
+ (
+ %a{ :href => "http://www.uni-freiburg.de", :target => "_top" } University Freiburg
+ ). It was founded in 2004 by Christoph Helma.
+
diff --git a/views/layout.haml b/views/layout.haml
new file mode 100644
index 0000000..d8d0fb2
--- /dev/null
+++ b/views/layout.haml
@@ -0,0 +1,38 @@
+!!!
+%html
+ %head
+ %meta{ :content => "text/html; charset=us-ascii", "http-equiv" => "content-type" }
+ %meta{ :name => "robots", :content => "all" }
+ %meta{ :name => "author", :content => "Christoph Helma, Andreas Maunz" }
+ %link{:rel=>'stylesheet', :href=>'/style.css', :type => "text/css"}
+ %title in silico toxicology
+
+ %body
+ .header
+ .logo
+ %img{ :src => "/logo.jpg", :alt => "in silico toxicology" }
+ %br research + consulting
+ .index
+ %ul
+ %li
+ %a{ :href => "/" } Home
+ %li
+ %a{ :href => "/software" } Software
+ %li
+ %a{ :href => "/services" } Services
+ %li
+ %a{ :href => "/publications" } Publications
+ %li
+ %a{ :href => "/awards" } Awards
+ %li
+ %a{ :href => "/links" } Links
+ %li
+ %a{ :href => "/contact" } Contact
+
+ .content
+ = yield
+
+ .footer
+ &copy;
+ %a{ :href => "http://www.in-silico.ch/" } in silico toxicology
+ 2004-2009
diff --git a/views/links.haml b/views/links.haml
new file mode 100644
index 0000000..ac902e2
--- /dev/null
+++ b/views/links.haml
@@ -0,0 +1,15 @@
+%ul
+ %li
+ %a{ :href => "http://www.predictive-toxicology.org/", :target => "_top" }
+ www.predictive-toxicology.org
+ \: general information
+ about Predictive Toxicology, programs, datasets, etc.
+ %li
+ %a{ :href => "http://www.predictive-toxicology.org/lazar/", :target => "_top" }
+ lazar webinterface
+ \: free toxicity predictions
+ %li
+ %a{ :href => "http://www.alfadeo.de/in-silico/", :target => "_top" }
+ in
+ silico art
+
diff --git a/views/publications.haml b/views/publications.haml
new file mode 100644
index 0000000..748282b
--- /dev/null
+++ b/views/publications.haml
@@ -0,0 +1 @@
+-# %iframe{ :src => '/publications.html' , :width => '100%'}
diff --git a/views/services.haml b/views/services.haml
new file mode 100644
index 0000000..768022b
--- /dev/null
+++ b/views/services.haml
@@ -0,0 +1,24 @@
+%ul
+ %li
+ Local installation of the
+ %code lazar
+ system
+ %li
+ Support for local
+ %code lazar
+ installations
+ %li
+ Development of new prediction modules
+ %li
+ Inclusion of in-house data into prediction modules
+ %li
+ Batch predictions via file upload
+ %li
+ Costumer oriented
+ %code lazar
+ implementations (e.g.
+ consideration of background knowledge, inclusion of biological
+ data, optimisation for high throughput screening)
+ %li
+ Contract research and consulting
+
diff --git a/views/software.haml b/views/software.haml
new file mode 100644
index 0000000..f51982e
--- /dev/null
+++ b/views/software.haml
@@ -0,0 +1,21 @@
+%em in silico
+toxicology develops the
+%code
+ %a{ :href => "http://www.predictive-toxicology.org/lazar/" } lazar
+(
+%em Lazy Structure- Activity Relationships
+) program for the prediction of toxic activities.
+%p
+ %code lazar
+ can be used from a free
+ %a{ :href => "http://lazar.in-silico.ch/" } webinterface
+ or by compiling the
+ %a{ :href => "http://github.com/helma/lazar-core/" } source code
+ (
+ %a{ :href => "http://www.gnu.org/copyleft/gpl.html" } GNU License
+ ) for a local installation.
+%p
+ We offer also
+ %a{ :href => '/services' } commercial services
+ for in-house installations, custom developments, consulting and support.
+
diff --git a/views/style.sass b/views/style.sass
new file mode 100644
index 0000000..8a5c0f4
--- /dev/null
+++ b/views/style.sass
@@ -0,0 +1,22 @@
+body
+ background-color: grey
+
+ .header
+ :background-color blue
+
+ .logo
+ :background-color orange
+
+ .index
+ :background-color red
+
+ li
+ :display inline
+ &:hover
+ :background-color white
+
+ .content
+ :background-color yellow
+
+ .footer
+ :background-color green