1 <% if wu.state_label.in? ["Complete", "Failed", "Cancelled"] %>
2 <% lc = wu.log_collection %>
3 <% if lc and object_readable(lc, Collection) and object_readable(wu.uuid) %>
4 <%= link_to("Log", "#{wu.uri}#Log") %>
8 <% elsif wu.state_label == "Running" %>
9 <% if object_readable(wu.uuid) %>
10 <%= link_to("Log", "#{wu.uri}#Log") %>