[ARVADOS] created: 36c360770c7925509552cfe8c3d8bf64fe1c2644
git at public.curoverse.com
git at public.curoverse.com
Tue Aug 5 16:14:22 EDT 2014
at 36c360770c7925509552cfe8c3d8bf64fe1c2644 (commit)
commit 36c360770c7925509552cfe8c3d8bf64fe1c2644
Author: Phil Hodgson <bitbucket at philhodgson.net>
Date: Tue Aug 5 16:13:49 2014 -0400
Addition of button that copies the current collection to a specified project (refs #3114, #3476)
Not positioned anywhere yet: I just slapped it onto the top of the page.
diff --git a/apps/workbench/app/views/collections/show.html.erb b/apps/workbench/app/views/collections/show.html.erb
index a51c450..f049de9 100644
--- a/apps/workbench/app/views/collections/show.html.erb
+++ b/apps/workbench/app/views/collections/show.html.erb
@@ -1,3 +1,25 @@
+<div class="dropdown">
+ <button class="btn btn-default dropdown-toggle" id="copy2project-btn" type="button" data-toggle="dropdown">
+ Copy this collection to project...
+ <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu" role="menu" aria-labelledby="copy2project-btn">
+ <%= render partial: "projects_tree_menu", locals: {
+ :project_link_to => Proc.new do |pnode, &block|
+ link_to( actions_path(id: pnode[:object].uuid,
+ selection: [ @object.uuid ],
+ selection_param: 'selection[]',
+ copy_selections_into_project: pnode[:object].uuid,
+ success: 'redirect-to-created-object'),
+ method: :post,
+ &block)
+ end,
+ :top_button => nil
+ } %>
+ </ul>
+</div>
+
+
<div class="row row-fill-height">
<div class="col-md-6">
<div class="panel panel-info">
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list