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" %>
13 <%= javascript_tag do %>
18 padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
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>
32 <a class="brand" href="/"><%= Rails.configuration.site_name rescue Rails.application.class.parent_name %></a>
33 <div class="nav-collapse collapse">
36 [true, 'Keys', authorized_keys_path],
37 [true, 'Data', collections_path],
38 [true, 'Groups', groups_path],
39 [true, 'Pipeline Templates', pipeline_templates_path],
40 [true, 'Pipeline Instances', pipeline_instances_path],
41 [true, 'Jobs', jobs_path]
42 ].each do |admin_only, name, path| %>
43 <% if !admin_only or (current_user and current_user.is_admin) %>
44 <li<%= raw ' class="active"' if request.fullpath.index(path) %>><a href="<%= path %>"><%= name %></a></li>
48 <ul class="nav pull-right">
49 <% if current_user -%>
50 <li><a href="<%= logout_path %>">Log out</a></li>
52 <li><a href="<%= root_path %>">Log in</a></li>
55 </div><!--/.nav-collapse -->
60 <div class="container">
64 </div> <!-- /container -->