Sha256: 9ae273d9311d02a1cccfaff9267ed5347abc87b332a7158018c4888504b29716
Contents?: true
Size: 1.01 KB
Versions: 17
Compression:
Stored size: 1.01 KB
Contents
<tr class="<%= cycle('even', 'odd') %>"> <% resource_handler.attributes.each do |attribute| %> <td class="<%= attribute[:type] %> <%= attribute[:name] %>"> <% if attribute[:type] == :boolean %> <%= render_icon render_attribute(resource, attribute) %> <% else %> <%= render_attribute(resource, attribute) %> <% end %> </td> <% end %> <td class="tools"> <% permitted_to?(:destroy, resource_permission_scope) do %> <%= link_to_confirmation_window( '', _t("Are you sure?"), resource_path(resource), :title => _t("Delete"), :class => "icon destroy", :id => "delete_#{resource_handler.resource_name}_#{resource.id}" ) %> <% end %> <% permitted_to?(:edit, resource_permission_scope) do %> <%= link_to_overlay_window( '', edit_resource_path(resource), { :title => _t("Edit"), :size => resource_window_size }, { :class => "icon edit", :title => _t("Edit") } ) %> <% end %> </td> </tr>
Version data entries
17 entries across 17 versions & 1 rubygems