Sha256: b57cb11741c5419a8e949eae8ffcadc20ebcccc95c3d9427463a537cd6a6db63

Contents?: true

Size: 715 Bytes

Versions: 1

Compression:

Stored size: 715 Bytes

Contents

%h1 Listing pages

%table{:class => "tablesorter"}
  %thead
    %tr
      %th{:width => 200} Name
      %th{:width => 290} Content
      / %th{:width => 100} Type
      / %th{:width => 120} Visible
      / %th{:width => 170} Section
      %th
      %th
  %tbody
    - @pages.each do |page|
      %tr
        %td= page.name
        %td= truncate page.content, :length => 60
        / %td= page.page_type
        / %td= page.visible
        / %td= page.section
        / %td= page.contactform
        / %td= page.accordion
        %td= link_to 'Edit', edit_admin_page_path(page)
        %td= link_to 'Destroy', [:admin, page], :confirm => 'Are you sure?', :method => :delete

= link_to 'New Page', new_admin_page_path

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
creature-0.0.1 lib/generators/pages/templates/pages_index.html.haml