[ARVADOS] updated: 9f01a7f0a7316be945a009172aa1899d1c1a727b
git at public.curoverse.com
git at public.curoverse.com
Thu Jun 26 15:42:47 EDT 2014
Summary of changes:
.../pipeline_templates/_show_components.html.erb | 2 +-
.../views/pipeline_templates/_show_recent.html.erb | 20 ++++++++++++++------
2 files changed, 15 insertions(+), 7 deletions(-)
via 9f01a7f0a7316be945a009172aa1899d1c1a727b (commit)
from 169d4321970e87a7000cbd0bb4c763bc57193632 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 9f01a7f0a7316be945a009172aa1899d1c1a727b
Author: radhika <radhika at curoverse.com>
Date: Thu Jun 26 15:28:24 2014 -0400
3088: show project chooser for run this pipeline on a template
diff --git a/apps/workbench/app/views/pipeline_templates/_show_components.html.erb b/apps/workbench/app/views/pipeline_templates/_show_components.html.erb
index 8be156f..509b86a 100644
--- a/apps/workbench/app/views/pipeline_templates/_show_components.html.erb
+++ b/apps/workbench/app/views/pipeline_templates/_show_components.html.erb
@@ -11,7 +11,7 @@
}.to_json),
{ class: "btn btn-primary btn-sm", remote: true, method: 'get' }
) do %>
- <i class="fa fa-fw fa-folder"></i> Run this pipeline
+ <i class="fa fa-fw fa-folder"></i> Run this pipeline
<% end %>
<% end %>
diff --git a/apps/workbench/app/views/pipeline_templates/_show_recent.html.erb b/apps/workbench/app/views/pipeline_templates/_show_recent.html.erb
index f18f515..16fabcf 100644
--- a/apps/workbench/app/views/pipeline_templates/_show_recent.html.erb
+++ b/apps/workbench/app/views/pipeline_templates/_show_recent.html.erb
@@ -27,12 +27,20 @@
<tr>
<td>
- <%= form_tag '/pipeline_instances' do |f| %>
- <%= hidden_field :pipeline_instance, :pipeline_template_uuid, :value => ob.uuid %>
- <%= button_tag nil, {class: "btn btn-default btn-xs", title: "Run #{ob.name}"} do %>
- Run <i class="fa fa-fw fa-play"></i>
- <% end %>
- <% end %>
+ <%= button_to(choose_projects_path(id: "run-pipeline-button",
+ title: 'Choose project',
+ editable: true,
+ action_name: 'Choose',
+ action_href: pipeline_instances_path,
+ action_method: 'post',
+ action_data: {selection_param: 'pipeline_instance[owner_uuid]',
+ 'pipeline_instance[pipeline_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 %>
+ <i class="fa fa-fw fa-play"></i>Run
+ <% end %>
</td>
<td>
<%= render :partial => "show_object_button", :locals => {object: ob, size: 'xs'} %>
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list