summaryrefslogtreecommitdiff
path: root/views/layout.haml
blob: cdabe43b2455028d4e2b43e189020c5e298c1bb4 (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
!!! 
%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  => "javascripts/jquery.js"}
    %script{:type => "text/javascript", :src  => "javascripts/toxcreate.js"}
    %script{:type => "text/javascript", :src  => "javascripts/jquery-ui-progressbar.js"}
    %link{:rel=>'stylesheet', :href=>'stylesheets/style.css', :type => "text/css"}
    %link{:rel=>'stylesheet', :href=>'progressbar/progressbar.css', :type => "text/css"}      

  %body
    .logo
      %img{:src => "ToxCreate_rgb_72.png", :alt => 'ToxCreate', :align => 'right'}/
      %br
      Create and evaluate models to predict toxicity
    .index
      %ul
        %li{:class => ("selected" if /\/create/ =~ 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
        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'} issue tracker.

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

      = yield

    .footer
      ©
      %a{:href => 'http://www.in-silico.ch'} in silico toxicology
      2009-2010, powered by
      %a{:href => 'http://www.opentox.org'} <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;position:relative;">Tox</span>