1 <% content_for :content_top do %>
4 <%= render_editable_attribute @object, 'name', nil, { 'data-emptytext' => "New project" } %>
7 <div class="arv-description-as-subtitle">
8 <%= render_editable_attribute @object, 'description', nil, { 'data-emptytext' => "(No description provided)", 'data-toggle' => 'manual' } %>
13 <% content_for :tab_line_buttons do %>
14 <% if @object.editable? %>
16 choose_collections_path(
17 title: 'Add data to project:',
20 action_href: actions_path(id: @object.uuid),
21 action_method: 'post',
22 action_data: {selection_param: 'selection[]', copy_selections_into_project: @object.uuid, success: 'page-refresh'}.to_json),
23 { class: "btn btn-primary btn-sm", remote: true, method: 'get', data: {'event-after-select' => 'page-refresh'} }) do %>
24 <i class="fa fa-fw fa-plus"></i> Add data...
27 choose_pipeline_templates_path(
28 title: 'Choose a pipeline to run:',
29 action_name: 'Next: choose inputs <i class="fa fa-fw fa-arrow-circle-right"></i>',
30 action_href: pipeline_instances_path,
31 action_method: 'post',
32 action_data: {'selection_param' => 'pipeline_instance[pipeline_template_uuid]', 'pipeline_instance[owner_uuid]' => @object.uuid, 'success' => 'redirect-to-created-object'}.to_json),
33 { class: "btn btn-primary btn-sm", remote: true, method: 'get' }) do %>
34 <i class="fa fa-fw fa-gear"></i> Run a pipeline...
36 <%= link_to projects_path('project[owner_uuid]' => @object.uuid), method: 'post', class: 'btn btn-sm btn-primary' do %>
37 <i class="fa fa-fw fa-plus"></i>
42 title: 'Move this project to...',
44 my_root_selectable: true,
46 action_href: project_path(@object.uuid),
48 action_data: {selection_param: 'project[owner_uuid]', success: 'page-refresh'}.to_json),
49 { class: "btn btn-sm btn-primary arv-move-to-project", remote: true, method: 'get' }) do %>
50 <i class="fa fa-fw fa-truck"></i> Move project...
52 <%= link_to(project_path(id: @object.uuid), method: 'delete', class: 'btn btn-sm btn-primary', data: {confirm: "Really delete project '#{@object.name}'?"}) do %>
53 <i class="fa fa-fw fa-trash-o"></i> Delete project
59 filters = [['uuid', 'is_a', "arvados#collection"]]
60 @objects = @object.contents({limit: 50, include_linked: true, :filters => filters})
61 objects_and_names = get_objects_and_names @objects
62 page_offset = next_page_offset @objects
65 <%= render partial: 'show_tab_contents', locals: {project: @object, objects_and_names: objects_and_names, filters: filters, page_offset: page_offset, tab_name: 'Data_collections'} %>