- layout      ||= index_branch
- has_siblings  = layout.siblings.select{|l| l.site_id == @site.id}.size > 0

%li{:id => dom_id(layout)}
  .item
    .icon
      - if !params[:category].present? && has_siblings
        .dragger
          %span &#8645;
          
    .btn-group.btn-group-sm
      = link_to t('.add_child_layout'), new_comfy_admin_cms_site_layout_path(@site, :parent_id => layout.id), :class => 'btn btn-default'
      = link_to t('.edit'), edit_comfy_admin_cms_site_layout_path(@site, layout), :class => 'btn btn-default'
      = link_to t('.delete'), comfy_admin_cms_site_layout_path(@site, layout), :method => :delete, :data => {:confirm => t('.are_you_sure')}, :class => 'btn btn-danger'
    
    .item-content
      .item-title
        = link_to layout.label, edit_comfy_admin_cms_site_layout_path(@site, layout)
      .item-meta
        = layout.identifier

  - if layout.children.present?
    %ul= render :partial => 'index_branch', :collection => layout.children

- layout      ||= index_branch
- has_siblings  = layout.siblings.select{|l| l.site_id == @site.id}.size > 0

%li{:id => dom_id(layout)}
  .item
    .icon
      - if !params[:category].present? && has_siblings
        .dragger
          %span &#8645;
          
    .btn-group.btn-group-sm
      = link_to t('.add_child_layout'), new_comfy_admin_cms_site_layout_path(@site, :parent_id => layout.id), :class => 'btn btn-default'
      = link_to t('.edit'), edit_comfy_admin_cms_site_layout_path(@site, layout), :class => 'btn btn-default'
      = link_to t('.delete'), comfy_admin_cms_site_layout_path(@site, layout), :method => :delete, :data => {:confirm => t('.are_you_sure')}, :class => 'btn btn-danger'
    
    .item-content
      .item-title
        = link_to layout.label, edit_comfy_admin_cms_site_layout_path(@site, layout)
      .item-meta
        = layout.identifier

  - if layout.children.present?
    %ul.children.sortable
      = render :partial => 'index_branch', :collection => layout.children

Enable sort for children layouts
Enable sort for children layouts

The layouts list is not enabling sub layouts to be sorted due to
a missing class (`.sortable`). This fixes it by adding the missing
class. Copies over the behaviour of the index_branch for the sites
index action.
