Sha256: da1b0f9320b5b591cc3eb85377b527bc475012c1d1a6cb5a16584c1c86d88d46
Contents?: true
Size: 1010 Bytes
Versions: 3
Compression:
Stored size: 1010 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.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
Version data entries
3 entries across 3 versions & 1 rubygems