X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4e1dda28351f6b7aa91aa6baca8805e283f2694b..02c368b2e6f6fd05930db1b57e5887b82a6c8b36:/apps/workbench/app/views/projects/_show_data_collections.html.erb diff --git a/apps/workbench/app/views/projects/_show_data_collections.html.erb b/apps/workbench/app/views/projects/_show_data_collections.html.erb index 9198c653dc..337629a4c8 100644 --- a/apps/workbench/app/views/projects/_show_data_collections.html.erb +++ b/apps/workbench/app/views/projects/_show_data_collections.html.erb @@ -1,3 +1,4 @@ +<% if @object.uuid != current_user.uuid # Not the "Home" project %> <% content_for :content_top do %>

@@ -8,6 +9,7 @@ <%= render_editable_attribute @object, 'description', nil, { 'data-emptytext' => "(No description provided)", 'data-toggle' => 'manual' } %> +<% end %> <% end %> <% content_for :tab_line_buttons do %> @@ -37,20 +39,22 @@ Add a subproject <% end %> - <%= link_to( - choose_projects_path( - title: 'Move this project to...', - editable: true, - my_root_selectable: true, - action_name: 'Move', - action_href: project_path(@object.uuid), - action_method: 'put', - action_data: {selection_param: 'project[owner_uuid]', success: 'page-refresh'}.to_json), - { class: "btn btn-sm btn-primary arv-move-to-project", remote: true, method: 'get' }) do %> - Move project... - <% end %> - <%= link_to(project_path(id: @object.uuid), method: 'delete', class: 'btn btn-sm btn-primary', data: {confirm: "Really delete project '#{@object.name}'?"}) do %> - Delete project + <% if @object.uuid != current_user.uuid # Not the "Home" project %> + <%= link_to( + choose_projects_path( + title: 'Move this project to...', + editable: true, + my_root_selectable: true, + action_name: 'Move', + action_href: project_path(@object.uuid), + action_method: 'put', + action_data: {selection_param: 'project[owner_uuid]', success: 'page-refresh'}.to_json), + { class: "btn btn-sm btn-primary arv-move-to-project", remote: true, method: 'get' }) do %> + Move project... + <% end %> + <%= link_to(project_path(id: @object.uuid), method: 'delete', class: 'btn btn-sm btn-primary', data: {confirm: "Really delete project '#{@object.name}'?"}) do %> + Delete project + <% end %> <% end %> <% end %> <% end %> @@ -62,4 +66,4 @@ page_offset = next_page_offset @objects %> -<%= render partial: 'show_tab_contents', locals: {project: @object, objects_and_names: objects_and_names, filters: filters, page_offset: page_offset} %> +<%= render partial: 'show_tab_contents', locals: {project: @object, objects_and_names: objects_and_names, filters: filters, page_offset: page_offset, tab_name: 'Data_collections'} %>