- <% if current_obj.state_label.in? ["Complete", "Failed", "Cancelled"] %>
- <% if current_obj.log_collection %>
- <% logCollection = Collection.find? current_obj.log_collection %>
- <% if logCollection %>
- <%= link_to "Log", "#{current_obj.uri}#Log" %>
- <% else %>
- Log unavailable
- <% end %>
- <% end %>
- <% elsif current_obj.state_label == "Running" %>
- <% if current_obj.readable? %>
- <%= link_to "Log", "#{current_obj.uri}#Log" %>
- <% else %>
- Log unavailable
- <% end %>
- <% end %>