Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / projects / _show_contents_rows.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <% get_objects_and_names.each do |object, name_link| %>
6   <% name_object = (object.respond_to?(:name) || !name_link) ? object : name_link %>
7   <tr class="filterable"
8       data-object-uuid="<%= name_object.uuid %>"
9       data-kind="<%= object.kind %>"
10       data-object-created-at="<%= object.created_at %>"
11       >
12     <td>
13       <div style="width:1em; display:inline-block;">
14         <%= render partial: 'selection_checkbox', locals: {object: object, friendly_name: ((name_object.name rescue '') || '')} %>
15       </div>
16     </td>
17
18     <td>
19       <% if @object.editable? %>
20         <%= link_to({action: 'remove_item', id: @object.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 %>
21           <i class="fa fa-fw fa-trash-o"></i>
22         <% end %>
23       <% else %>
24         <i class="fa fa-fw"></i><%# placeholder %>
25       <% end %>
26     </td>
27
28     <td>
29       <%= render :partial => "show_object_button", :locals => {object: object, size: 'sm', name_link: name_link} %>
30     </td>
31
32     <td>
33       <% if object.respond_to?(:name) %>
34         <%= render_editable_attribute (name_link || object), 'name', nil, {}, {tiptitle: 'rename'} %>
35       <% end %>
36     </td>
37
38     <td class="arv-description-in-table">
39       <%= render_controller_partial(
40           'show_object_description_cell.html',
41           controller_name: object.controller_name,
42           locals: {object: object})
43           %>
44     </td>
45   </tr>
46 <% end %>