X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d9e2cb7b64063741b4b1243f9ad630f55be93840..a31816b03c8249178d51621524f05437f5f9478a:/apps/workbench/app/views/pipeline_instances/_show_inputs.html.erb diff --git a/apps/workbench/app/views/pipeline_instances/_show_inputs.html.erb b/apps/workbench/app/views/pipeline_instances/_show_inputs.html.erb index 5106710b0e..567ca72504 100644 --- a/apps/workbench/app/views/pipeline_instances/_show_inputs.html.erb +++ b/apps/workbench/app/views/pipeline_instances/_show_inputs.html.erb @@ -7,13 +7,11 @@ <% next if !component %> <% component[:script_parameters].andand.each do |pname, pvalue_spec| %> <% if pvalue_spec.is_a? Hash %> - <% if (pvalue_spec[:description] or - ((pvalue_spec[:required] or pvalue_spec[:optional] == false) and - not pvalue_spec[:value])) %> + <% if pvalue_spec[:description] or + pvalue_spec[:required] or pvalue_spec[:optional] == false %> <% n_inputs += 1 %>

@@ -34,14 +32,17 @@ <% if n_inputs == 0 %>

This pipeline does not need any further inputs specified. You can start it by clicking the "Run" button whenever you're ready. (It's not too late to change existing settings, though.)

<% else %> -

Provide <%= n_inputs > 1 ? 'values' : 'a value' %> for the following <%= n_inputs > 1 ? 'parameters' : 'parameter' %>, then click the "Run" button to start the pipeline.

- <%= content_for :pi_input_form %> + <%= render_unreadable_inputs_present %> - <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'), - class: 'btn btn-primary run-pipeline-button', - method: :patch - ) do %> - Run +

Provide <%= n_inputs > 1 ? 'values' : 'a value' %> for the following <%= n_inputs > 1 ? 'parameters' : 'parameter' %>, then click the "Run" button to start the pipeline.

+ <% if @object.editable? %> + <%= content_for :pi_input_form %> + <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'), + class: 'btn btn-primary run-pipeline-button', + method: :patch + ) do %> + Run + <% end %> <% end %> <% end %>