1 <% if objects.empty? %>
3 <p style="text-align: center">
4 No <%= controller.controller_name.humanize.downcase %> to display.
9 <% attr_blacklist = ' created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at owner_uuid group_class' %>
11 <%= render partial: "paging", locals: {results: objects, object: @object} %>
13 <%= form_tag do |f| %>
15 <table class="table table-condensed arv-index">
18 <% if objects.first and objects.first.class.goes_in_folders? %>
22 <% objects.first.attributes_for_display.each do |attr, attrvalue| %>
23 <% next if attr_blacklist.index(" "+attr) %>
24 <th class="arv-attr-<%= attr %>">
25 <%= controller.model_class.attribute_info[attr.to_sym].andand[:column_heading] or attr.sub /_uuid/, '' %>
29 <!-- a column for delete buttons -->
35 <% objects.each do |object| %>
36 <tr data-object-uuid="<%= object.uuid %>">
37 <% if objects.first.class.goes_in_folders? %>
39 <%= render :partial => "selection_checkbox", :locals => {:object => object} %>
43 <%= render :partial => "show_object_button", :locals => {object: object, size: 'xs'} %>
46 <% object.attributes_for_display.each do |attr, attrvalue| %>
47 <% next if attr_blacklist.index(" "+attr) %>
48 <td class="arv-object-<%= object.class.to_s %> arv-attr-<%= attr %>">
49 <% if attr == 'uuid' %>
50 <span class="arvados-uuid"><%= attrvalue %></span>
52 <% if object.attribute_editable? attr %>
53 <%= render_editable_attribute object, attr %>
55 <%= resource_class_for_uuid(attrvalue, referring_attr: attr, referring_object: @object).to_s %>
58 <%= link_to_if_arvados_object(attrvalue, { referring_object: @object, link_text: raw('<i class="icon-hand-right"></i>') }) if resource_class_for_uuid(attrvalue, {referring_object: @object}) %>
63 <%= render partial: 'delete_object_button', locals: {object:object} %>
75 <%= render partial: "paging", locals: {results: objects, object: @object} %>