1 <% if @object.uuid != current_user.uuid # Not the "Home" project %>
2 <% content_for :content_top do %>
3 <%= render partial: 'name_and_description' %>
7 <% content_for :tab_line_buttons do %>
8 <% if @object.editable? %>
9 <div class="btn-group btn-group-sm">
10 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Add data <span class="caret"></span></button>
11 <ul class="dropdown-menu" role="menu">
14 choose_collections_path(
15 title: 'Choose a collection to copy into this project:',
18 action_href: actions_path(id: @object.uuid),
19 action_method: 'post',
20 action_data: {selection_param: 'selection[]', copy_selections_into_project: @object.uuid, success: 'page-refresh'}.to_json),
21 { remote: true, title: "Copy a collection from another project into this one", data: {'event-after-select' => 'page-refresh', 'toggle' => 'dropdown'} }) do %>
22 <i class="fa fa-fw fa-clipboard"></i> ...from a different project
26 <%= link_to(collections_path(options: {ensure_unique_name: true}, collection: {manifest_text: "", name: "New collection", owner_uuid: @object.uuid}, redirect_to_anchor: 'Upload'), {
28 title: "Upload files into a new collection",
29 data: {toggle: 'dropdown'}}) do %>
30 <i class="fa fa-fw fa-upload"></i> ...from your computer
36 choose_pipeline_templates_path(
37 title: 'Choose a pipeline to run:',
38 action_name: 'Next: choose inputs <i class="fa fa-fw fa-arrow-circle-right"></i>',
39 action_href: pipeline_instances_path,
40 action_method: 'post',
41 action_data: {'selection_param' => 'pipeline_instance[pipeline_template_uuid]', 'pipeline_instance[owner_uuid]' => @object.uuid, 'success' => 'redirect-to-created-object'}.to_json),
42 { class: "btn btn-primary btn-sm", remote: true, title: "Run a pipeline in this project" }) do %>
43 <i class="fa fa-fw fa-gear"></i> Run a pipeline...
45 <%= link_to projects_path({'project[owner_uuid]' => @object.uuid, 'options' => {'ensure_unique_name' => true}}), method: :post, title: "Add a subproject to this project", class: 'btn btn-sm btn-primary' do %>
46 <i class="fa fa-fw fa-plus"></i>
52 <%= render file: 'application/show.html.erb', locals: local_assigns %>