1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <% if wu.state_label.in? ["Complete", "Failed", "Cancelled"] %>
6 <% lc = wu.log_collection %>
7 <% if lc and object_readable(lc, Collection) and object_readable(wu.uuid) %>
8 <%= link_to("Log", "#{wu.uri}#Log") %>
12 <% elsif wu.state_label == "Running" %>
13 <% if object_readable(wu.uuid) %>
14 <%= link_to("Log", "#{wu.uri}#Log") %>