X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7497b21c937bb6e8451f16047945b7cfc9081a53..6d1c41d6fd83824669cd1a6d714ea6da1ae7ab4c:/apps/workbench/app/views/container_requests/_show_inputs.html.erb diff --git a/apps/workbench/app/views/container_requests/_show_inputs.html.erb b/apps/workbench/app/views/container_requests/_show_inputs.html.erb index b365dc5529..07bf7c4d76 100644 --- a/apps/workbench/app/views/container_requests/_show_inputs.html.erb +++ b/apps/workbench/app/views/container_requests/_show_inputs.html.erb @@ -1,26 +1,39 @@ -<% n_inputs = cwl_inputs_required(@object, @object.mounts[:"/var/lib/cwl/workflow.json"][:content][:inputs], [:mounts, :"/var/lib/cwl/cwl.input.json", :content]) %> +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + +<% +n_inputs = if @object.mounts[:"/var/lib/cwl/workflow.json"] && @object.mounts[:"/var/lib/cwl/cwl.input.json"] + cwl_inputs_required(@object, get_cwl_inputs(@object.mounts[:"/var/lib/cwl/workflow.json"][:content]), [:mounts, :"/var/lib/cwl/cwl.input.json", :content]) + else + 0 + end +%> <% content_for :pi_input_form do %>
<% end %> +Reuse past workflow steps if available? <%= render_editable_attribute(@object, :reuse_steps) %>
+ <% if n_inputs == 0 %>This workflow does not need any further inputs specified. Click the "Run" button at the bottom of the page to start the workflow.
<% else %>