%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
<%= yield :head %>
<%= javascript_tag do %>
<%= yield :js %>
<% end %>
<%= Rails.configuration.site_name rescue Rails.application.class.parent_name %>
<% [
[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) %>
- ><%= name %>
<% end %>
<% end %>
<% if current_user -%>
- <%= current_user.email %>
- Log out
<% else -%>
- Log in
<% end -%>
<%= yield %>