Sha256: d88695d46676a42874b33b3ffe4529d6fc6c37a7dc28c03a5a5f2a233b763857

Contents?: true

Size: 641 Bytes

Versions: 8

Compression:

Stored size: 641 Bytes

Contents

- unless pages.blank?
  - pages.each do |page|
    %li.page-branch{ :'data-id' => page.id }
      = link_to page.title, edit_admin_page_path(page), :class => :edit
      = link_to t('kuhsaft.admin.pages.index.add'), new_admin_page_path(:parent_id => page.id), :class => 'new-child button'
      = link_to t('kuhsaft.admin.pages.index.delete'), admin_page_path(page), :confirm => t('kuhsaft.admin.pages.index.confirm'), :method => :delete, :class => 'delete button negative' if page.childs.empty?
      .clear
      - unless page.childs.empty?
        %ul.sortable
          = render :partial => 'branch', :locals => { :pages => page.childs }

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kuhsaft-0.1.1 app/views/kuhsaft/admin/pages/_branch.html.haml
kuhsaft-0.1.0 app/views/kuhsaft/admin/pages/_branch.html.haml
kuhsaft-0.0.8 app/views/kuhsaft/admin/pages/_branch.html.haml
kuhsaft-0.0.7 app/views/kuhsaft/admin/pages/_branch.html.haml
kuhsaft-0.0.6 app/views/kuhsaft/admin/pages/_branch.html.haml
kuhsaft-0.0.5 app/views/kuhsaft/admin/pages/_branch.html.haml
kuhsaft-0.0.4 app/views/kuhsaft/admin/pages/_branch.html.haml
kuhsaft-0.0.3 app/views/kuhsaft/admin/pages/_branch.html.haml