Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / work_units / _show_log_link.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
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") %>
9   <% else %>
10     Log unavailable
11   <% end %>
12 <% elsif wu.state_label == "Running" %>
13   <% if object_readable(wu.uuid) %>
14     <%= link_to("Log", "#{wu.uri}#Log") %>
15   <% else %>
16     Log unavailable
17   <% end %>
18 <% end %>