%>
<%
- no_jobs_api = !PipelineInstance.api_exists?(:index)
- recent_procs_title = 'Recent pipelines and processes'
- recent_procs_title = 'Recent processes' if no_jobs_api
-
- run_proc_title = 'Choose a pipeline or workflow to run:'
- run_proc_title = 'Choose a workflow to run:' if no_jobs_api
+ if !PipelineInstance.api_exists?(:index)
+ recent_procs_title = 'Recent processes'
+ run_proc_title = 'Choose a workflow to run:'
+ else
+ recent_procs_title = 'Recent pipelines and processes'
+ run_proc_title = 'Choose a pipeline or workflow to run:'
+ end
%>
<div class="row">
<% end %>
<%
- no_jobs_api = !PipelineInstance.api_exists?(:index)
-
- run_proc_title = 'Choose a pipeline or workflow to run:'
- run_proc_title = 'Choose a workflow to run:' if no_jobs_api
-
- run_proc_hover = 'Run a pipeline or workflow in this project'
- run_proc_hover = 'Run a workflow in this project' if no_jobs_api
+ if !PipelineInstance.api_exists?(:index)
+ run_proc_title = 'Choose a workflow to run:'
+ run_proc_hover = 'Run a workflow in this project'
+ else
+ run_proc_title = 'Choose a pipeline or workflow to run:'
+ run_proc_hover = 'Run a pipeline or workflow in this project'
+ end
%>
<% content_for :tab_line_buttons do %>
get :index, {}, session_for(:active)
assert_includes @response.body, "zzzzz-xvhdp-cr4runningcntnr" # expect crs
assert_not_includes @response.body, "zzzzz-d1hrv-" # expect no pipelines
+ assert_includes @response.body, "Run a process"
+ assert_not_includes @response.body, "Run a pipeline"
end
[
assert_includes resp, "href=\"#Pipelines_and_processes\""
assert_includes resp, "href=\"#Workflows\""
assert_not_includes resp, "href=\"#Pipeline_templates\""
+ assert_includes @response.body, "Run a process"
+ assert_not_includes @response.body, "Run a pipeline"
end
end
end