schofield 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/generators/schofield_controller/templates/index_partial.rb +5 -1
- data/schofield.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
- <%= sco_underscored_plural %>.each do |<%= sco_underscored %>|
|
10
10
|
|
11
|
-
%tr
|
11
|
+
%tr<%- if actions.include?('sort') -%>{ :class => 'dragable', :id => "<%= sco_underscored %>_#{<%= sco_underscored %>.id}"}<%- end -%>
|
12
12
|
|
13
13
|
%td&= <%= sco_underscored %>
|
14
14
|
<%- if actions.include?('show') -%>
|
@@ -19,4 +19,8 @@
|
|
19
19
|
<%- end -%>
|
20
20
|
<%- if actions.include?('destroy') -%>
|
21
21
|
%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 %>)}?"
|
22
|
+
<%- end -%>
|
23
|
+
<%- if actions.include?('sort') -%>
|
24
|
+
|
25
|
+
= sortable_element('<%= sco_underscored_plural %>', :items => 'tr.dragable', :url => sort_admin_<%= sco_underscored_plural %>_path)
|
22
26
|
<%- end -%>
|
data/schofield.gemspec
CHANGED