Sha256: d6811a2a90ba687392672568cdd240a12d9a5151bc64ab4cfe1a0154c624a12e
Contents?: true
Size: 1.05 KB
Versions: 24
Compression:
Stored size: 1.05 KB
Contents
<tr class="<%= cycle('even', 'odd') %>"> <% if local_assigns[:icon] %> <td class="icon"><%= render_icon(local_assigns[:icon], size: "xl") %></td> <% end %> <% resource_handler.sorted_attributes.each do |attribute| %> <td class="<%= attribute[:type] %> <%= attribute[:name] %>"> <% if attribute[:type] == :boolean %> <%= resource.public_send(attribute[:name]) ? render_icon(:check) : nil %> <% else %> <%= render_attribute(resource, attribute) %> <% end %> </td> <% end %> <td class="tools"> <% if can?(:destroy, resource) %> <sl-tooltip content="<%= Alchemy.t("Delete") %>"> <%= delete_button resource_path(resource, search_filter_params) %> </sl-tooltip> <% end %> <% if can?(:edit, resource) %> <sl-tooltip content="<%= Alchemy.t("Edit") %>"> <%= link_to_dialog render_icon(:edit), edit_resource_path(resource, search_filter_params), { title: Alchemy.t('Edit'), size: resource_window_size }, class: "icon_button" %> <% end %> </sl-tooltip> </td> </tr>
Version data entries
24 entries across 24 versions & 1 rubygems