Sha256: 7ac4a532a12317c5998d65ba253823976fd112565a11b09c9ab20fa01de70f09

Contents?: true

Size: 871 Bytes

Versions: 7

Compression:

Stored size: 871 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
          handle
        .dd3-content{ class: page.state_class }
          = link_to page.title.presence, kuhsaft.edit_cms_page_path(page)

          .button-group
            - if page.children.empty?
              = link_to kuhsaft.cms_page_path(page), :confirm => t('kuhsaft.cms.admin.confirm_delete', :name => page.title), :method => :delete, :class => 'btn btn-small btn-danger' do
                %i.icon-trash.icon-white

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kuhsaft-1.8.6 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-1.8.5 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-1.8.4 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-1.8.1 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-2.0.1 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-2.0.0 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-1.8.0 app/views/kuhsaft/cms/pages/_branch.html.haml