% 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 %>
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 %>
<% panes.each_with_index do |(pane, content), i| %>
<%= content %>
<% end %>
<% end %>
<% content_for :js do %>
$(window).on('load', smart_scroll_fixup);
$(document).on('shown.bs.tab', 'ul.nav-tabs > li > a', smart_scroll_fixup);
<% end %>