Sha256: 54ec9e1057f1cb8975eec2db64ad4002ee3c67944386ef18a0a8b8597b09a1a2

Contents?: true

Size: 854 Bytes

Versions: 12

Compression:

Stored size: 854 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, 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

12 entries across 12 versions & 1 rubygems

Version Path
kuhsaft-2.2.6 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-2.2.5 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-2.2.4 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-2.2.3 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-2.2.2 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-2.2.1 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-2.2.0 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-2.1.2 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-2.1.1 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-2.1.0 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-2.0.3 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-2.0.2 app/views/kuhsaft/cms/pages/_branch.html.haml