add tutorials and references to home page
[arvados.git] / apps / workbench / app / views / layouts / application.html.erb
index c11013f4184ccf76876e2d1ccae7c4a1a8b1e5cf..56ac2cbacb4dee8f31c7c3bb77772ad25a155a61 100644 (file)
@@ -2,7 +2,13 @@
 <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>
@@ -46,6 +51,7 @@
          </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>