1 <% content_for :content_top do %>
2 <% 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 %>
3 <div class="pull-right" style="width: 40%">
4 <div class="alert alert-warning alert-dismissable">
5 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
6 <strong>Hey.</strong> 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.<br />
7 <%= button_to(choose_projects_path(
11 action_href: url_for(action: :update),
12 action_method: 'patch',
13 action_data: {selection_param: @object.resource_param_name+'[owner_uuid]', success: 'page-refresh'}.to_json),
14 { class: "btn btn-primary btn-sm", remote: true, method: 'get' }) do %>
15 <i class="fa fa-fw fa-folder"></i> Choose a project...
22 <% content_for :tab_panes do %>
24 <% comparable = controller.respond_to? :compare %>
26 <ul class="nav nav-tabs">
27 <% pane_list.each_with_index do |pane, i| %>
28 <li class="<%= 'active' if i==0 %>"><a href="#<%= pane %>" data-toggle="tab" id="<%= pane %>-tab" data-pane-content-url="<%= url_for(tab_pane: pane) %>"> <%= pane.gsub('_', ' ') %></a></li>
31 <div class="tab-content">
32 <% pane_list.each_with_index do |pane, i| %>
34 class="tab-pane fade <%= 'in active loaded' if i==0 %> arv-log-event-listener"
35 <% if controller.action_name == "index" %>
36 data-object-kind="arvados#<%= ArvadosApiClient.class_kind controller.model_class %>"
38 data-object-uuid="<%= @object.uuid %>"
42 <div id="<%= pane %>-scroll" style="margin-top:0.5em;">
43 <div class="pane-content">
45 <%= render(partial: 'show_' + pane.downcase,
46 locals: { comparable: comparable, objects: @objects }) %>
48 <div class="spinner spinner-32px spinner-h-center"></div>