<html>
<head>
<meta charset="utf-8">
- <title><%= Rails.configuration.site_name rescue Rails.application.class.parent_name %></title>
+ <title>
+ <% if content_for? :page_title %>
+ <%= yield :page_title %>
+ <% else %>
+ <%= Rails.configuration.site_name rescue Rails.application.class.parent_name %>
+ <% end %>
+ </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<div class="nav-collapse collapse">
<ul class="nav">
<% [
- [true, 'Data', collections_path],
- [true, 'Groups', groups_path],
- [true, 'Pipeline Templates', pipeline_templates_path],
- [true, 'Pipeline Instances', pipeline_instances_path],
- [true, 'Jobs', jobs_path]
+ [false, 'Keys', authorized_keys_path],
+ [false, 'VMs', virtual_machines_path],
+ [false, 'Repos', repositories_path],
+ [false, 'Jobs', jobs_path]
].each do |admin_only, name, path| %>
<% if !admin_only or (current_user and current_user.is_admin) %>
<li<%= raw ' class="active"' if request.fullpath.index(path) %>><a href="<%= path %>"><%= name %></a></li>
</ul>
<ul class="nav pull-right">
<% if current_user -%>
+ <li><span class="badge badge-info" style="margin: 10px auto 10px; padding-top: 4px; padding-bottom: 4px"><%= current_user.email %></span></li>
<li><a href="<%= logout_path %>">Log out</a></li>
<% else -%>
<li><a href="<%= root_path %>">Log in</a></li>