1 <% puts "\n***************** IN SHOW CONTENT ROWS objects_and_names = #{objects_and_names.inspect} " %>
2 <% objects_and_names.each do |object, name_link| %>
3 <% name_object = (object.respond_to?(:name) || !name_link) ? object : name_link %>
5 data-object-uuid="<%= name_object.uuid %>"
6 data-kind="<%= object.kind %>"
9 <%= render partial: 'selection_checkbox', locals: {object: name_object, friendly_name: ((name_object.name rescue '') || '')} %>
11 <% if project.editable? %>
12 <%= link_to({action: 'remove_item', id: project.uuid, item_uuid: ((name_link && name_link.uuid) || object.uuid)}, method: :delete, remote: true, data: {confirm: "Remove #{object.class_for_display.downcase} #{name_object.name rescue object.uuid} from this project?", toggle: 'tooltip', placement: 'top'}, class: 'btn btn-sm btn-default btn-nodecorate', title: 'remove') do %>
13 <i class="fa fa-fw fa-trash-o"></i>
16 <i class="fa fa-fw"></i><%# placeholder %>
19 <%= render :partial => "show_object_button", :locals => {object: object, size: 'sm', name_link: name_link} %>
21 <%= render_editable_attribute (name_link || object), 'name', nil, {tiptitle: 'rename'} %>
23 <td class="arv-description-in-table">
24 <%= render_controller_partial(
25 'show_object_description_cell.html',
26 controller_name: object.controller_name,
27 locals: {object: object})