1 <% if @objects.empty? %>
3 <p style="text-align: center">
4 No <%= controller.model_class.to_s.pluralize.underscore.gsub '_', ' ' %> to display.
9 <% attr_blacklist = ' created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at' %>
11 <%= form_tag do |f| %>
13 <table class="table table-condensed arv-index">
17 <% @objects.first.attributes_for_display.each do |attr, attrvalue| %>
18 <% next if attr_blacklist.index(" "+attr) %>
19 <th class="arv-attr-<%= attr %>">
20 <%= controller.model_class.attribute_info[attr.to_sym].andand[:column_heading] or attr.sub /_uuid/, '' %>
24 <!-- a column for delete buttons -->
30 <% @objects.each do |object| %>
31 <tr data-object-uuid="<%= object.uuid %>">
33 <%= render :partial => "selection_checkbox", :locals => {:object => object} %>
36 <% object.attributes_for_display.each do |attr, attrvalue| %>
37 <% next if attr_blacklist.index(" "+attr) %>
38 <td class="arv-object-<%= object.class.to_s %> arv-attr-<%= attr %>">
39 <% if attr == 'uuid' %>
40 <%= link_to_if_arvados_object object %>
41 <%= link_to_if_arvados_object(object, { link_text: raw('<i class="icon-hand-right"></i>') }) %>
43 <% if object.attribute_editable? attr %>
44 <%= render_editable_attribute object, attr %>
46 <%= resource_class_for_uuid(attrvalue, referring_attr: attr, referring_object: @object).to_s %>
49 <%= 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}) %>
54 <%= render partial: 'delete_object_button', locals: {object:object} %>