% if @objects.empty? %>
No <%= controller.model_class.to_s.pluralize.underscore.gsub '_', ' ' %> to display.
<% else %> <% attr_blacklist = ' created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at' %> <%= form_tag do |f| %><% @objects.first.attributes_for_display.each do |attr, attrvalue| %> <% next if attr_blacklist.index(" "+attr) %> | <%= controller.model_class.attribute_info[attr.to_sym].andand[:column_heading] or attr.sub /_uuid/, '' %> | <% end %>|
---|---|---|
<%= check_box_tag 'uuids[]', object.uuid, false, :class => 'persistent-selection' %> | <% object.attributes_for_display.each do |attr, attrvalue| %> <% next if attr_blacklist.index(" "+attr) %><% if attr == 'uuid' %> <%= link_to_if_arvados_object object %> <%= link_to_if_arvados_object(object, { link_text: raw('') }) %> <% else %> <% if object.attribute_editable? attr %> <%= render_editable_attribute object, attr %> <% else %> <%= resource_class_for_uuid(attrvalue, referring_attr: attr, referring_object: @object).to_s %> <%= attrvalue %> <% end %> <%= link_to_if_arvados_object(attrvalue, { referring_object: @object, link_text: raw('') }) if resource_class_for_uuid(attrvalue, {referring_object: @object}) %> <% end %> | <% end %><%= render partial: 'delete_object_button', locals: {object:object} %> |