Sha256: a519f92ae6ab21d50fbba3b8af240119252ba0858711c80920cc53f07681b537

Contents?: true

Size: 954 Bytes

Versions: 7

Compression:

Stored size: 954 Bytes

Contents

- 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 ⇅
          
    .btn-group
      = link_to t('.add_child_layout'), new_admin_cms_site_layout_path(@site, :parent_id => layout.id), :class => 'btn btn-small'
      = link_to t('.edit'), edit_admin_cms_site_layout_path(@site, layout), :class => 'btn btn-small'
      = link_to t('.delete'), admin_cms_site_layout_path(@site, layout), :method => :delete, :data => {:confirm => t('.are_you_sure')}, :class => 'btn btn-small btn-danger'
    
    .item-content
      .item-title
        = link_to layout.label, edit_admin_cms_site_layout_path(@site, layout)
      .item-meta
        = layout.identifier

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.11.2 app/views/admin/cms/layouts/_index_branch.html.haml
comfortable_mexican_sofa-1.11.1 app/views/admin/cms/layouts/_index_branch.html.haml
comfortable_mexican_sofa-1.11.0 app/views/admin/cms/layouts/_index_branch.html.haml
comfortable_mexican_sofa-1.10.3 app/views/admin/cms/layouts/_index_branch.html.haml
comfortable_mexican_sofa-1.10.2 app/views/admin/cms/layouts/_index_branch.html.haml
comfortable_mexican_sofa-1.10.1 app/views/admin/cms/layouts/_index_branch.html.haml
comfortable_mexican_sofa-1.10.0 app/views/admin/cms/layouts/_index_branch.html.haml