summaryrefslogtreecommitdiff
path: root/views/layout.haml
blob: e7e1acaa072572e6d45a9a470018700006784159 (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
!!!
%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, Denis Gebele" }
    %script{:src=>"/javascripts/jquery.min.js"}
    %script{:src=>"/javascripts/bootstrap.min.js"}
    %script{:src=>"/javascripts/ist.js"}
    %link{:rel=>'stylesheet', :href=>'/css/bootstrap.min.css', :type => "text/css"}       
    %link{:rel=>'stylesheet', :href=>'/style.css', :type => "text/css"}       
    %title in silico toxicology

  %body
    %header.page-header
      %div.row
        %div.col-md-2
          %img.media-object{:src=>"/images/IST_logo_s.png", :alt=>"logo", :width=>"120px", :style=>"margin:0 3em 0 2em;"}
        %div.col-md-10
          %h1.media-heading{:style=>"text-align:right;"}
            %em in silico 
            toxicology gmbh
    #nav.navbar.navbar-default
      %div.navbar-header
        %button.navbar-toggle{:type=>"button", :data=>{:toggle=>"collapse", :target=>"#navbar"}}
          %span{:class=>"icon-bar"}
          %span{:class=>"icon-bar"}
          %span{:class=>"icon-bar"}
      #navbar.navbar-collapse.collapse
        %ul.nav.navbar-nav
          %li{:class => ("active" if /^\/$/ =~ request.path )}
            %a{ :href => "/" } Software and services
          %li{:class => ("active" if /commercial/ =~ request.path )}
            %a{ :href => "/commercial" } Commercial
          %li{:class => ("active" if /publications/ =~ request.path )}
            %a{ :href => "/publications" } Publications
          %li{:class => ("active" if /presentations/ =~ request.path )}
            %a{ :href => "/presentations" } Presentations
          %li{:class => ("active" if /blog/ =~ request.path )}
            %a{ :href => "/blog" } Blog
          %li{:class => ("active" if /projects/ =~ request.path )}
            %a{ :href => "/projects" } Projects
          %li{:class => ("active" if /awards/ =~ request.path )}
            %a{ :href => "/awards" } Awards
          %li{:class => ("active" if /about/ =~ request.path )}
            %a{ :href => "/about" } About
          / 
            %li{:class => ("active" if /^\/$/ =~ request.path )}
            %a{ :href => "/" } Home
            %li{:class => ("active" if /software/ =~ request.path )}
            %a{ :href => "/software" } 
            %li{:class => ("active" if /services/ =~ request.path )}
            %a{ :href => "/services" } Products and Services
            %li{:class => ("active" if /contact/ =~ request.path )}
            %a{ :href => "/contact" } Contact

    .content
      = yield

    .footer
      ©
      %a{ :href => "http://www.in-silico.ch/" } in silico toxicology gmbh
      2004-#{Time.now.year}