Sha256: 66cd9f3c2296be452380e04b218088d5bb0375ae1669d652caf346dfe1512579

Contents?: true

Size: 676 Bytes

Versions: 6

Compression:

Stored size: 676 Bytes

Contents

- unless pages.blank?
  - pages.each do |page|
    %li.can-drag{ :'data-id' => page.id, :'data-put-url' => cms_page_path(page) }
      .branch
        = link_to page.title.presence || t('.not_translated'), edit_cms_page_path(page), :class => ('to-translate' if page.title.blank?)
        = link_to t('.add'), new_cms_page_path(:parent_id => page.id), :class => 'icon add-child-page'
        = link_to t('.delete'), cms_page_path(page), :confirm => t('.confirm'), :method => :delete, :class => 'icon delete' if page.childs.empty?
        .clear
      - unless page.childs.empty?
        %ul.sortable
          = render :partial => 'branch', :locals => { :pages => page.childs }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kuhsaft-0.2.legacy4 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-0.2.legacy3 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-0.2.legacy2 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-0.2.legacy app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-0.2.1 app/views/kuhsaft/cms/pages/_branch.html.haml
kuhsaft-0.2 app/views/kuhsaft/cms/pages/_branch.html.haml