X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3a1b569ab49c1e77bc9b3d7a9f38cf9de753ec47..5b305bba25a4616fa88377b3fd4871b351caf636:/apps/workbench/app/views/application/_content.html.erb diff --git a/apps/workbench/app/views/application/_content.html.erb b/apps/workbench/app/views/application/_content.html.erb index 37250cc029..1609a66b09 100644 --- a/apps/workbench/app/views/application/_content.html.erb +++ b/apps/workbench/app/views/application/_content.html.erb @@ -1,21 +1,56 @@ +<% content_for :content_top do %> + <% if @object and not @object.is_a?(Group) and @object.class.goes_in_projects? and @object.owner_uuid == current_user.uuid and not @name_link %> +
+
+ + Hey. This <%= @object.class_for_display.downcase %> belongs to your account, but it's not in any of your projects. If you want it to be easy to find in the future, you should move it to a project.
+ <%= button_to(choose_projects_path( + title: 'Move to...', + editable: true, + action_name: 'Move', + action_href: url_for(action: :update), + action_method: 'patch', + action_data: {selection_param: @object.resource_param_name+'[owner_uuid]', success: 'page-refresh'}.to_json), + { class: "btn btn-primary btn-sm", remote: true, method: 'get' }) do %> + Choose a project... + <% end %> +
+
+ <% end %> +<% end %> + <% content_for :tab_panes do %> -<% pane_list ||= %w(recent) %> +<% comparable = controller.respond_to? :compare %>
<% pane_list.each_with_index do |pane, i| %> -
-
- <%= render partial: 'show_' + pane %> +
+ data-object-kind="arvados#<%= ArvadosApiClient.class_kind controller.model_class %>" +<% else %> + data-object-uuid="<%= @object.uuid %>" +<% end %> + > + +
+
+ <% if i == 0 %> + <%= render(partial: 'show_' + pane.downcase, + locals: { comparable: comparable, objects: @objects }) %> + <% else %> +
+ <% end %> +
<% end %>
<% end %> -