expose Keys, VMs, Jobs tabs to non-admin users
[arvados.git] / apps / workbench / app / views / layouts / application.html.erb
index a06a9bef7930f412348f98983a0e2df2e20b0983..a9081ccaf5c6b801e1e6f9681cc71d2e78aaa69e 100644 (file)
         <div class="nav-collapse collapse">
           <ul class="nav">
            <% [
-              [true, 'Keys', authorized_keys_path],
-              [true, 'VMs', virtual_machines_path],
+              [false, 'Keys', authorized_keys_path],
+              [false, 'VMs', virtual_machines_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, '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>