Sha256: b6422607d7f088829ce4e2816f00ed6f4a36a4b99bbe4a0ba27cc3249c878460
Contents?: true
Size: 824 Bytes
Versions: 31
Compression:
Stored size: 824 Bytes
Contents
<tr class="<%= cycle('even', 'odd') %>"> <% resource_handler.attributes.each do |attribute| %> <td class="<%= attribute[:type] %> <%= attribute[:name] %>"> <% if attribute[:type] == :boolean %> <%= render_icon !!resource.send(attribute[:name]) %> <% else %> <%= render_attribute(resource, attribute) %> <% end %> </td> <% end %> <td class="tools"> <% if can?(:destroy, resource) %> <%= delete_button resource_path(resource, current_location_params) %> <% end %> <% if can?(:edit, resource) %> <%= link_to_dialog( '', edit_resource_path(resource, current_location_params), { title: Alchemy.t('Edit'), size: resource_window_size }, { class: 'icon edit', title: Alchemy.t('Edit') } ) %> <% end %> </td> </tr>
Version data entries
31 entries across 31 versions & 1 rubygems