Sha256: 3296f726a128a5e2f0e61822cc0cff5417c578fe4bebb8114f875faf4a3327cd
Contents?: true
Size: 872 Bytes
Versions: 39
Compression:
Stored size: 872 Bytes
Contents
%h2 Redirects index %a{:href => '/redirects/new'} New redirect %table#redirects %thead %tr %th D&D to reorder %th Pattern %th Redirect to %th %tbody - @redirects.each do |r| %tr{:id => "redirect_#{r.id}"} %td.text-center.handle %span.ui-icon.ui-icon-arrowthick-2-n-s %td= r.pattern %td= r.to %td.edit-link.text-center.white-space-nowrap %a{:href => "/redirects/#{r.id}/edit"} Edit | %a.delete_link{:href => "/redirects/#{r.id}"} Delete :javascript $(function() { $('#redirects tbody').sortable({ handle: 'td.handle', cursors: 'crosshair', stop: function() { $.post('/redirects/reorder', $(this).sortable('serialize') + '&_method=put', function(data) { $.jGrowl(data); }); } }); });
Version data entries
39 entries across 39 versions & 1 rubygems