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