1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
6 message = "The following collections have this content:"
7 if @same_pdh.items_available > @same_pdh.results.size
8 message += ' (' + (@same_pdh.items_available - @same_pdh.results.size).to_s + ' more results are not shown)'
12 <div class="col-md-10 col-md-offset-1">
13 <div class="panel panel-info">
14 <div class="panel-heading">
15 <h3 class="panel-title"><%= params["uuid"] %></h3>
17 <div class="panel-body">
18 <p><i><%= message %></i></p>
19 <% @same_pdh.sort { |a,b| b.created_at <=> a.created_at }.each do |c| %>
21 <div class="col-md-8">
22 <% owner = object_for_dataclass(Group, c.owner_uuid) || object_for_dataclass(User, c.owner_uuid) %>
23 <%= link_to_if_arvados_object owner, {:friendly_name => true} %> / <%= link_to_if_arvados_object c, {:friendly_name => true} %><br>
25 <div class="col-md-4">
26 <%= render_localized_date c.created_at %>