Sha256: 26e8caec27f20e83202ea12df610f122a4924c1adcfcda3b701e914aa87f0ee6

Contents?: true

Size: 937 Bytes

Versions: 25

Compression:

Stored size: 937 Bytes

Contents

- unless pages.blank?
  - pages.each do |page|
    .branch-group{ :'data-id' => page.id, :'data-put-url' => kuhsaft.cms_page_path(page) }
      .row-fluid.branch{ :class => page.state_class }
        .span9
          .branch-title
            = link_to page.title.presence, kuhsaft.edit_cms_page_path(page), :class => 'btn btn-link'
        .span3
          .pull-right
            - 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

25 entries across 25 versions & 1 rubygems

Version Path
kuhsaft-1.2.4 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-1.2.3 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-1.2.2 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-1.2.1 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-1.2.0 app/views/kuhsaft/cms/pages/_branch.html.haml