Sha256: a1947ed0ef5e44f1432703dc23427f647bea5e66307c6bc676c508c92ac6be76
Contents?: true
Size: 1.06 KB
Versions: 18
Compression:
Stored size: 1.06 KB
Contents
%h1 All Pages = link_to 'New Page', admin_pages_path(page: {title: "my page #{PagesCms::Page.last.id.to_i+1}"}), method: :post, class: 'btn btn-default' %table.table %thead %tr %th Page %th SubPage %th Actions - @pages.each do |page| %tr %td = page.title %td %td = link_to 'edit', edit_admin_page_path(page), class: 'btn btn-default btn-xs' = link_to 'show', slugged_path(page), class: 'btn btn-default btn-xs' = link_to 'delete', admin_page_path(page), method: :delete, class: 'btn btn-default btn-xs' - if page.children.exists? - page.children.each do |subpage| %tr %td %td = subpage.title %td = link_to 'edit', edit_admin_page_path(subpage), class: 'btn btn-default btn-xs' = link_to 'show', slugged_path(subpage), class: 'btn btn-default btn-xs' = link_to 'delete', admin_page_path(subpage), method: :delete, class: 'btn btn-default btn-xs'
Version data entries
18 entries across 17 versions & 1 rubygems