Sha256: b8a13ec6a40fd99eff1c09e06145f82950f2cf4b890d2b8b7ce1d21c7cf844e3

Contents?: true

Size: 857 Bytes

Versions: 15

Compression:

Stored size: 857 Bytes

Contents

- unless pages.blank?
  %ol.dd-list
    - pages.each do |page|
      %li.dd-item.dd3-item{ 'data-id' => page.id }
        .dd-handle.dd3-handle
        .dd3-content{ class: page.state_class }
          = link_to page.title.presence, qbrick.edit_cms_page_path(page)

          .button-group
            - if page.children.empty?
              = link_to qbrick.cms_page_path(page), data: { confirm: t('qbrick.cms.backend.confirm_delete', name: page.title) }, method: :delete, class: 'btn btn-small btn-danger', remote: true do
                %i.icon-trash.icon-white

            = link_to qbrick.new_cms_page_path(parent_id: page.id), class: 'btn btn-small' do
              %i.icon-plus-sign
              = t('qbrick.cms.pages.index.add_page')

        - unless page.children.empty?
          = render partial: 'branch', locals: { pages:  page.children }

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
qbrick-2.7.1 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.7 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.6.10 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.6.9 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.6.8 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.6.7 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.6.6 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.6.5 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.6.4 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.6.3 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.6.2 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.6.1 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.6.0 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.5.2 app/views/qbrick/cms/pages/_branch.html.haml
qbrick-2.5.1 app/views/qbrick/cms/pages/_branch.html.haml