12416: Merge Put() into PutReader().
[arvados.git] / apps / workbench / app / views / collections / hash_matches.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <%
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)'
9   end
10 %>
11 <div class="row">
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>
16       </div>
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| %>
20           <div class="row">
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>
24             </div>
25             <div class="col-md-4">
26               <%= render_localized_date c.created_at %>
27             </div>
28           </div>
29         <% end %>
30       </div>
31     </div>
32   </div>
33 </div>