Sha256: a49828891c5489ac339fd6f8f62a1cca3172fd4e8566542f560802b6671bd27a
Contents?: true
Size: 1.24 KB
Versions: 9
Compression:
Stored size: 1.24 KB
Contents
<% Alchemy::Deprecation.warn "The `alchemy/admin/resources/_resource` partial is deprecated. Please `render 'alchemy/admin/resources/_resource_table'` instead and update it to your needs." %> <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
9 entries across 9 versions & 1 rubygems