|
1 | 1 | <!DOCTYPE html> |
2 | | -<html> |
| 2 | +<html lang="en"> |
3 | 3 | <head> |
4 | | - <title>Hrdb</title> |
5 | | - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> |
6 | | - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> |
| 4 | + <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title><%= content_for?(:title) ? "#{yield(:title)} | HRDB" : "HRDB" %></title> |
7 | 7 | <%= csrf_meta_tags %> |
| 8 | + |
| 9 | + <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> |
| 10 | + <!--[if lt IE 9]> |
| 11 | + <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js" type="text/javascript"></script> |
| 12 | + <![endif]--> |
| 13 | + |
| 14 | + <%= stylesheet_link_tag "application", :media => "all" %> |
| 15 | + |
| 16 | + <!-- For third-generation iPad with high-resolution Retina display: --> |
| 17 | + <!-- Size should be 144 x 144 pixels --> |
| 18 | + <%= favicon_link_tag 'apple-touch-icon-144x144-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '144x144' %> |
| 19 | + |
| 20 | + <!-- For iPhone with high-resolution Retina display: --> |
| 21 | + <!-- Size should be 114 x 114 pixels --> |
| 22 | + <%= favicon_link_tag 'apple-touch-icon-114x114-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '114x114' %> |
| 23 | + |
| 24 | + <!-- For first- and second-generation iPad: --> |
| 25 | + <!-- Size should be 72 x 72 pixels --> |
| 26 | + <%= favicon_link_tag 'apple-touch-icon-72x72-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '72x72' %> |
| 27 | + |
| 28 | + <!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: --> |
| 29 | + <!-- Size should be 57 x 57 pixels --> |
| 30 | + <%= favicon_link_tag 'apple-touch-icon-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png' %> |
| 31 | + |
| 32 | + <!-- For all other devices --> |
| 33 | + <!-- Size should be 32 x 32 pixels --> |
| 34 | + <%= favicon_link_tag 'favicon.ico', :rel => 'shortcut icon' %> |
| 35 | + |
| 36 | + <%= javascript_include_tag "application" %> |
8 | 37 | </head> |
9 | 38 | <body> |
10 | 39 |
|
11 | | -<%= yield %> |
12 | | - |
13 | | -<p> |
14 | | -<%= link_to "People", people_path %> | |
15 | | -<%= link_to "Projects", projects_path %> | |
16 | | -<% if current_user %> |
17 | | - Logged in as <%= current_user.email %>. |
18 | | - <%= link_to "Log out", logout_path %> |
19 | | -<% else %> |
20 | | - <%= link_to "Sign up", signup_path %> or |
21 | | - <%= link_to "log in", login_path %>. |
22 | | -<% end %> |
23 | | -</p> |
| 40 | +<div class="navbar navbar-default navbar-static-top" role="navigation"> |
| 41 | + <div class="container-fluid"> |
| 42 | + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse"> |
| 43 | + <span class="icon-bar"></span> |
| 44 | + <span class="icon-bar"></span> |
| 45 | + <span class="icon-bar"></span> |
| 46 | + </button> |
| 47 | + <a class="navbar-brand" href="http://www.worldvision.at"><%= image_tag 'worldvision.png', alt: 'www.worldvision.at', height: '50px', style:"margin-top:-15px; margin-left:-10px" %></a> |
| 48 | + <div class="navbar-collapse collapse navbar-responsive-collapse"> |
| 49 | + <ul class="nav navbar-nav"> |
| 50 | + <li class="active"><%= link_to "Overview", root_path %></li> |
| 51 | + <li><%= link_to "People", people_path %></li> |
| 52 | + <li><%= link_to "Projects", projects_path %></li> |
| 53 | + </ul> |
| 54 | + </div> |
| 55 | + </div> |
| 56 | +</div> |
| 57 | + |
| 58 | +<h1 align="center"><%= yield(:title) %></h1> |
| 59 | + |
| 60 | +<div class="container"> |
| 61 | + <div class="row"> |
| 62 | + <div class="col-lg-12"> |
| 63 | + <%#= bootstrap_flash %> |
| 64 | + </div> |
| 65 | + </div><!--/row--> |
| 66 | + <%= yield %> |
| 67 | + |
| 68 | + <footer> |
| 69 | + <p>© Company 2014</p> |
| 70 | + </footer> |
| 71 | + |
| 72 | +</div> <!-- /container --> |
24 | 73 |
|
25 | 74 | </body> |
26 | 75 | </html> |
0 commit comments