rename explorer -> workbench
[arvados.git] / apps / workbench / app / views / layouts / application.html.erb
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <meta charset="utf-8">
5   <title><%= Rails.configuration.site_name rescue Rails.application.class.parent_name %></title>
6   <meta name="viewport" content="width=device-width, initial-scale=1.0">
7   <meta name="description" content="">
8   <meta name="author" content="">
9   <%= stylesheet_link_tag    "application", :media => "all" %>
10   <%= javascript_include_tag "application" %>
11   <%= csrf_meta_tags %>
12   <%= yield :head %>
13   <%= javascript_tag do %>
14   <%= yield :js %>
15   <% end %>
16   <style>
17     body {
18     padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
19     }
20   </style>
21 </head>
22 <body>
23
24   <div class="navbar navbar-inverse navbar-fixed-top">
25     <div class="navbar-inner">
26       <div class="container">
27         <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
28           <span class="icon-bar"></span>
29           <span class="icon-bar"></span>
30           <span class="icon-bar"></span>
31         </a>
32         <a class="brand" href="/"><%= Rails.configuration.site_name rescue Rails.application.class.parent_name %></a>
33         <div class="nav-collapse collapse">
34           <ul class="nav">
35             <% [
36                [true, 'Data', collections_path],
37                [true, 'FactoryJobs', factory_jobs_path],
38                [true, 'Groups', groups_path],
39                [true, 'Jobs', jobs_path]
40                ].each do |admin_only, name, path| %>
41             <% if !admin_only or (current_user and current_user.is_admin) %>
42             <li<%= raw ' class="active"' if request.fullpath.index(path) %>><a href="<%= path %>"><%= name %></a></li>
43             <% end %>
44             <% end %>
45           </ul>
46           <ul class="nav pull-right">
47       <% if current_user -%>
48             <li><a href="<%= logout_path %>">Log out</a></li>
49       <% else -%>
50             <li><a href="<%= root_path %>">Log in</a></li>
51       <% end -%>
52           </ul>
53         </div><!--/.nav-collapse -->
54       </div>
55     </div>
56   </div>
57
58   <div class="container">
59
60     <%= yield %>
61
62   </div> <!-- /container -->
63
64 </body>
65 </html>