X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/de99c0b2effdd43d3843f15475cee84dbde8add8..c14ae0edcb3c386e50f46218184e8dabcbc20a37:/apps/workbench/app/views/workflows/_show_recent.html.erb diff --git a/apps/workbench/app/views/workflows/_show_recent.html.erb b/apps/workbench/app/views/workflows/_show_recent.html.erb new file mode 100644 index 0000000000..94d39c11a8 --- /dev/null +++ b/apps/workbench/app/views/workflows/_show_recent.html.erb @@ -0,0 +1,65 @@ +<%= render partial: "paging", locals: {results: @objects, object: @object} %> + +
+ | + | name | +description | +owner | +
---|---|---|---|---|
+ <%= button_to(choose_projects_path(id: "run-workflow-button", + title: 'Choose project', + editable: true, + action_name: 'Choose', + action_href: work_units_path, + action_method: 'post', + action_data: {'selection_param' => 'work_unit[owner_uuid]', + 'work_unit[template_uuid]' => ob.uuid, + 'success' => 'redirect-to-created-object' + }.to_json), + { class: "btn btn-default btn-xs", title: "Run #{ob.name}", remote: true, method: :get } + ) do %> + Run + <% end %> + | + ++ <%= render :partial => "show_object_button", :locals => {object: ob, size: 'xs'} %> + | + ++ <%= render_editable_attribute ob, 'name' %> + | + +
+ <% if ob.description %>
+ <%= render_attribute_as_textile(ob, "description", ob.description, false) %>
+ + <% end %> + |
+
+ + <%= link_to_if_arvados_object ob.owner_uuid, friendly_name: true %> + | +