app/views/guts/navigations/index.html.erb in guts-1.3.4 vs app/views/guts/navigations/index.html.erb in guts-1.3.5

- old
+ new

@@ -24,13 +24,14 @@ <div class="tiny button-group"> <%= link_to 'New', new_navigation_navigation_item_path(navigation), { class: 'button' } %> <%= link_to 'Edit', edit_navigation_path(navigation), { class: 'warning button' } %> <%= link_to_destroy 'Destroy', navigation, { class: 'alert button' } %> </div> - <ul> + <ul class="sortable" data-url="<%= reorder_navigation_path navigation %>"> <% if navigation.navigation_items.size > 0 %> <% navigation.navigation_items.each do |item| %> - <li> + <li class="item" data-id="<%= item.id %>"> + <i class="handle fa fa-reorder"></i> <%= item.title %>&nbsp;&nbsp;&mdash;&gt;&nbsp;&nbsp;<%= item.custom? ? 'Custom' : item.navigatable.navigatable_format %> <%= "to: #{item.custom}" if item.custom? %> <div class="action_links"> <%= link_to 'Edit', edit_navigation_navigation_item_path(navigation, item) %> <%= link_to_destroy 'Destroy', navigation_navigation_item_path(navigation, item) %> </div>