Merge branch 'master' into 2659-anonymous-share-projects
[arvados.git] / apps / workbench / app / views / projects / _show_tab_contents.html.erb
index fe9595a527b20dc96f038e745550052bf50e0d0c..b3b599329f82c73397c2ba00791943c0fccad586 100644 (file)
@@ -5,6 +5,7 @@
       <div class="btn-group btn-group-sm">
         <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection <span class="caret"></span></button>
         <ul class="dropdown-menu" role="menu">
+          <% if current_user.andand.is_active %>
           <li><%= link_to "Create new collection with selected collections", '#',
                   'data-href' => combine_selected_path(
                     action_data: {current_project_uuid: @object.uuid}.to_json
                   'data-selection-action' => 'combine-project-contents',
                   'data-toggle' => 'dropdown'
             %></li>
-          <li><%= link_to "Compare selected", 'action',
+          <% end %>
+          <li><%= link_to "Compare selected", '#',
                   'data-href' => compare_pipeline_instances_path,
                   'data-selection-param-name' => 'uuids[]',
-                  'data-selection-action' => 'compare'
+                  'data-selection-action' => 'compare',
+                  'data-toggle' => 'dropdown'
             %></li>
+          <% if current_user.andand.is_active %>
           <li><%= link_to "Copy selected...", '#',
                   'data-href' => choose_projects_path(
                     title: 'Copy selected items to...',
                       success: 'page-refresh'}.to_json),
                   'data-remote' => true,
                   'data-selection-param-name' => 'selection[]',
-                  'data-selection-action' => 'copy'
+                  'data-selection-action' => 'copy',
+                  'data-toggle' => 'dropdown'
             %></li>
+          <% end %>
           <% if @object.editable? %>
           <li><%= link_to "Move selected...", '#',
                   'data-href' => choose_projects_path(
@@ -51,7 +57,8 @@
                       success: 'page-refresh'}.to_json),
                   'data-remote' => true,
                   'data-selection-param-name' => 'selection[]',
-                  'data-selection-action' => 'move'
+                  'data-selection-action' => 'move',
+                  'data-toggle' => 'dropdown'
             %></li>
           <li><%= link_to "Remove selected", '#',
                   method: :delete,