1 <% content_for :content_top do %>
3 <% if @object.uuid == current_user.andand.uuid %>
6 <%= render_editable_attribute @object, 'name', nil, { 'data-emptytext' => "New project" } %>
11 <% content_for :tab_line_buttons do %>
12 <% if @object.editable? %>
13 <div class="btn-group btn-group-sm">
14 <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><i class="fa fa-fw fa-plus"></i> Add data <span class="caret"></span></button>
15 <ul class="dropdown-menu pull-right" role="menu">
18 choose_collections_path(
19 title: 'Choose a collection to copy into this project:',
22 action_href: actions_path(id: @object.uuid),
23 action_method: 'post',
24 action_data: {selection_param: 'selection[]', copy_selections_into_project: @object.uuid, success: 'page-refresh'}.to_json),
25 { remote: true, data: {'event-after-select' => 'page-refresh', 'toggle' => 'dropdown'} }) do %>
26 <i class="fa fa-fw fa-clipboard"></i> Copy data from another project
30 <%= link_to(collections_path(options: {ensure_unique_name: true}, collection: {manifest_text: "", name: "New collection", owner_uuid: @object.uuid}, redirect_to_anchor: 'Upload'), {
32 data: {toggle: 'dropdown'}}) do %>
33 <i class="fa fa-fw fa-upload"></i> Upload files from my computer
39 choose_pipeline_templates_path(
40 title: 'Choose a pipeline to run:',
41 action_name: 'Next: choose inputs <i class="fa fa-fw fa-arrow-circle-right"></i>',
42 action_href: pipeline_instances_path,
43 action_method: 'post',
44 action_data: {'selection_param' => 'pipeline_instance[pipeline_template_uuid]', 'pipeline_instance[owner_uuid]' => @object.uuid, 'success' => 'redirect-to-created-object'}.to_json),
45 { class: "btn btn-primary btn-sm", remote: true, title: "Run a pipeline in this project" }) do %>
46 <i class="fa fa-fw fa-gear"></i> Run a pipeline...
48 <%= 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 %>
49 <i class="fa fa-fw fa-plus"></i>
55 <%= render file: 'application/show.html.erb', locals: local_assigns %>