summaryrefslogtreecommitdiff
path: root/views/layout.haml
blob: 098c529c571bc375be4bdf8b25f19721f1112517 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
!!! 
%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}

  %head
    %meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=UTF-8'}
    %title ToxCreate
    %script{:type => "text/javascript", :src  => "#{url_for('/javascripts/jquery.js')}"}
    %script{:type => "text/javascript", :src  => "#{url_for('/javascripts/toxcreate.js')}"}
    %script{:type => "text/javascript", :src  => "#{url_for('/javascripts/jquery-ui-progressbar.js')}"}
    %link{:rel=>'stylesheet', :href=>"#{url_for('/stylesheets/style.css')}", :type => "text/css"}
    %link{:rel=>'stylesheet', :href=>"#{url_for('/progressbar/progressbar.css')}", :type => "text/css"}

  %body
    .logo
      %img{:src => "#{url_for('/ToxCreate_rgb_72.png')}", :alt => 'ToxCreate', :align => 'right'}/
      %br
      Creates computational models to predict toxicity
    .index
      %ul
        %li{:class => ("selected" if /\/create|echa|ambit|feature/ =~ request.path )}
          = link_to "Create", "/create"
        %li{:class => ("selected" if /models/ =~ request.path )}
          = link_to "Inspect", "/models"
        %li{:class => ("selected" if /predict|lazar/ =~ request.path )}
          = link_to "Predict", "/predict"
        - if AA_SERVER
          %li{:class => ("selected" if /login/ =~ request.path )}
            = link_to "Login", "/login"
        %li{:class => ("selected" if /help/ =~ request.path )}
          = link_to "Help", "/help"

    .content
      .login_info
        - if session[:username].size > 0
          User:
          %b= session[:username]

      - if `hostname`.match(/ot-test/)
        .notice 
          This service is for testing purposes only - once a week all models will be deleted. Please send bug reports and feature requests to our 
          %a{:href => 'http://github.com/opentox/toxcreate/issues', :rel => "external"} issue tracker.

      - if flash[:notice]
        %p
        .notice#flashnotice
          = flash[:notice]

      = yield

    .footer
      Disclaimer: ToxCreate uses state-of-the-art published and tested algorithms and methodologies with full validation information. However, just as with experimental measurements, computational predictions are subject to varying degrees of accuracy and uncertainty, so please read the full report carefully, particularly the validation information.  No liability is accepted for any inaccuracy in predictions.
      %p
        - tag = `git tag`.split("\n").last
        - tagdate = `git show #{tag}|grep Date`.split("\n").last
        Version:
        = tag
        ,
        = tagdate
      ©
      %a{:href => 'http://www.in-silico.ch', :rel => "external"} in silico toxicology
      2009-2011, powered by
      %a{:href => 'http://www.opentox.org', :rel => "external"} <span style="color:#5D308A;font-family:arial,sans-serif,helvetica;letter-spacing:-1px;">Open</span><span style="color:#000;font-family:arial,sans-serif,helvetica;font-weight:bold;letter-spacing:-1px;">Tox</span>
      (a project funded by the 
      %a{:href => "http://cordis.europa.eu/fp7/", :rel => "external"} 7th Framework Programme
      of the European Commission)