Sha256: 7cc0e4e9181cd01ae1041c5589f07d90c0395cbfbb5d60fcb3504942d78f3d5b
Contents?: true
Size: 1021 Bytes
Versions: 4
Compression:
Stored size: 1021 Bytes
Contents
- if <%= sco_underscored_plural %>.any? %table#<%= sco_underscored_plural %> = render :partial => 'shared/admin/table_header', :locals => { :columns => %w( Title ), :buttons => <%= %w(show edit destroy).inject(0) {|count,item| count += actions.include?(item) ? 1 : 0 } %> } %tbody - <%= sco_underscored_plural %>.each do |<%= sco_underscored %>| %tr %td&= <%= sco_underscored %> <%- if actions.include?('show') -%> %td= link_to_button 'Show', admin_<%= sco_underscored %>_path(<%= sco_underscored %>) <%- end -%> <%- if actions.include?('edit') -%> %td= link_to_button 'Edit', edit_admin_<%= sco_underscored %>_path(<%= sco_underscored %>) <%- end -%> <%- if actions.include?('destroy') -%> %td= link_to_button 'Delete', admin_<%= sco_underscored %>_path(<%= sco_underscored %>), :method => 'delete', :confirm => "Are you sure you want to delete the <%= sco_humanized %>: #{h(<%= sco_underscored %>)}?" <%- end -%>
Version data entries
4 entries across 4 versions & 1 rubygems