Sha256: deabeb8fa387dea9a18bdb941c622ef55a2ee10f7f5b35d9b49fa1a9f8018948
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
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<%- if actions.include?('sort') -%>{ :class => 'dragable', :id => "<%= sco_underscored %>_#{<%= sco_underscored %>.id}"}<%- end -%> %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 -%> <%- if actions.include?('sort') -%> = sortable_element('<%= sco_underscored_plural %>', :items => 'tr.dragable', :url => sort_admin_<%= sco_underscored_plural %>_path) <%- end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
schofield-0.1.5 | generators/schofield_controller/templates/index_partial.rb |
schofield-0.1.4 | generators/schofield_controller/templates/index_partial.rb |