add front page dashboard
[arvados.git] / apps / workbench / app / views / layouts / application.html.erb
index 57c4ace6711e461d807f26cc8adbba167d21c3bf..747f1d6fb256a41156fd9d4936fd49b8b206ee44 100644 (file)
         <div class="nav-collapse collapse">
           <ul class="nav">
            <% [
-              [true, 'Keys', authorized_keys_path],
-              [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>
@@ -47,6 +45,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>