Sha256: de1ecfa364c1b28db7645ad4b4744fdad3ea1010e9f19036f39df442181f179d

Contents?: true

Size: 1.1 KB

Versions: 14

Compression:

Stored size: 1.1 KB

Contents

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

%li{data: {id: layout.id}}
  .row
    .col-md-8.item
      .item-controls.d-none.d-md-block
        - if has_siblings
          .dragger
            %i.fas.fa-bars

      .item-content
        .item-title
          = link_to layout.label, edit_occams_admin_cms_site_layout_path(@site, layout)
        .item-meta
          = layout.identifier

    .col-md-4.d-flex.align-items-center.justify-content-md-end
      .btn-group.btn-group-sm
        = link_to t('.add_child_layout'), new_occams_admin_cms_site_layout_path(@site, parent_id: layout.id), class: "btn btn-outline-secondary"
        = link_to t('.edit'), edit_occams_admin_cms_site_layout_path(@site, layout), class: "btn btn-outline-secondary"
        = link_to t('.delete'), occams_admin_cms_site_layout_path(@site, layout), method: :delete, data: {confirm: t('.are_you_sure')}, class: "btn btn-danger"

  - if layout.children.present?
    %ul.list.children.sortable.pl-md-3
      = render partial: "index_branch", collection: layout.children.order(:position)

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
occams-1.1.0 app/views/occams/admin/cms/layouts/_index_branch.html.haml
occams-1.0.8 app/views/occams/admin/cms/layouts/_index_branch.html.haml
occams-1.0.7.3 app/views/occams/admin/cms/layouts/_index_branch.html.haml
occams-1.0.7.2 app/views/occams/admin/cms/layouts/_index_branch.html.haml
occams-1.0.7.1 app/views/occams/admin/cms/layouts/_index_branch.html.haml
occams-1.0.7 app/views/occams/admin/cms/layouts/_index_branch.html.haml
occams-1.0.6.1 app/views/occams/admin/cms/layouts/_index_branch.html.haml
occams-1.0.6 app/views/occams/admin/cms/layouts/_index_branch.html.haml
occams-1.0.5 app/views/occams/admin/cms/layouts/_index_branch.html.haml
occams-1.0.4 app/views/occams/admin/cms/layouts/_index_branch.html.haml
occams-1.0.3 app/views/occams/admin/cms/layouts/_index_branch.html.haml
occams-1.0.2 app/views/occams/admin/cms/layouts/_index_branch.html.haml
occams-1.0.1 app/views/occams/admin/cms/layouts/_index_branch.html.haml
occams-1.0.0 app/views/occams/admin/cms/layouts/_index_branch.html.haml