Sha256: bc02a4126e8aceb2bbc0c9831254f9260b286efff45adcdcdd89922c52d06f94
Contents?: true
Size: 703 Bytes
Versions: 16
Compression:
Stored size: 703 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', :page_title => page.title), :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
16 entries across 16 versions & 1 rubygems