1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <% if objects.empty? %>
7 <p style="text-align: center">
8 No <%= controller.controller_name.humanize.downcase %> to display.
13 <% attr_blacklist = ' created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at owner_uuid group_class properties' %>
15 <%= render partial: "paging", locals: {results: objects, object: @object} %>
17 <%= form_tag do |f| %>
19 <table class="table table-condensed arv-index">
22 <% if objects.first and objects.first.class.goes_in_projects? %>
26 <% objects.first.attributes_for_display.each do |attr, attrvalue| %>
27 <% next if attr_blacklist.index(" "+attr) %>
28 <th class="arv-attr-<%= attr %>">
29 <%= controller.model_class.attribute_info[attr.to_sym].andand[:column_heading] or attr.sub /_uuid/, '' %>
33 <!-- a column for user's home -->
36 <!-- a column for delete buttons -->
42 <% objects.each do |object| %>
43 <tr data-object-uuid="<%= object.uuid %>">
44 <% if objects.first.class.goes_in_projects? %>
46 <%= render :partial => "selection_checkbox", :locals => {:object => object} %>
50 <%= render :partial => "show_object_button", :locals => {object: object, size: 'xs'} %>
53 <% object.attributes_for_display.each do |attr, attrvalue| %>
54 <% next if attr_blacklist.index(" "+attr) %>
55 <td class="arv-object-<%= object.class.to_s %> arv-attr-<%= attr %>">
56 <% if attr == 'uuid' %>
57 <span class="arvados-uuid"><%= attrvalue %></span>
59 <%= link_to_if_arvados_object attrvalue, {referring_attr: attr, referring_object: object, with_class_name: true, friendly_name: true} %>
64 <%= render partial: 'show_home_button', locals: {object:object} %>
67 <%= render partial: 'delete_object_button', locals: {object:object} %>
79 <%= render partial: "paging", locals: {results: objects, object: @object} %>