X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e5658ecaa629572c5fe8e459f4f0630f28a4317f..47e59a35d5ed9b2cdb052894d741972324058505:/apps/workbench/app/views/application/_content.html.erb diff --git a/apps/workbench/app/views/application/_content.html.erb b/apps/workbench/app/views/application/_content.html.erb index 5e6211f462..7f3542083e 100644 --- a/apps/workbench/app/views/application/_content.html.erb +++ b/apps/workbench/app/views/application/_content.html.erb @@ -1,3 +1,7 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <% content_for :tab_panes do %> <% comparable = controller.respond_to? :compare %> @@ -20,18 +24,16 @@ link_disabled = "disabled" end end - elsif controller.model_class.to_s == 'PipelineInstance' - log_uuids = [@object.uuid] + pipeline_jobs(@object).collect{|x|x[:job].andand[:uuid]}.compact - if stderr_log_history(log_uuids, 1).empty? - data_toggle = "disabled" - tab_tooltip = "Log data is not available" - link_disabled = "disabled" - end + elsif (controller.model_class.to_s == 'PipelineInstance' and + !@object.has_readable_logs?) + data_toggle = "disabled" + tab_tooltip = "Log data is not available" + link_disabled = "disabled" end end %> -