X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/29356d0c02566aa33b3dbb9513dc701bad8fd16b..641552ee206524115aa63d68432ee23bf9d05278:/apps/workbench/app/views/projects/show.html.erb
diff --git a/apps/workbench/app/views/projects/show.html.erb b/apps/workbench/app/views/projects/show.html.erb
index 1129def7bf..6066335a15 100644
--- a/apps/workbench/app/views/projects/show.html.erb
+++ b/apps/workbench/app/views/projects/show.html.erb
@@ -1,3 +1,7 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
<% content_for :content_top do %>
<% if @object.uuid == current_user.andand.uuid %>
@@ -10,13 +14,13 @@
<% 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 %>