Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / views / work_units / _show_output.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <span class="<%=align%> text-overflow-ellipsis" style="max-width: 100%">
6   <% outputs = wu.outputs %>
7   <% if outputs.size == 0 %>
8     No output
9   <% elsif outputs.size == 1 %>
10     <% if defined?(include_icon) && include_icon %>
11       <i class="fa fa-fw fa-archive"></i>
12     <% end %>
13     <%= link_to_if_arvados_object outputs[0], friendly_name: true %>
14   <% else %>
15     <%= render partial: 'work_units/show_outputs', locals: {id: wu.uuid, outputs: outputs, align:align} %>
16   <% end %>
17 </span>