Sha256: e5ea1c4036f1541b9a3bf813bca06b8fd209c97299cefdb2684abfcafd08156e

Contents?: true

Size: 695 Bytes

Versions: 7

Compression:

Stored size: 695 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_page_path(page)
        %td= link_to 'Destroy', [page], :confirm => 'Are you sure?', :method => :delete

= link_to 'New Page', new_page_path

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
sushifish-0.9.6 lib/generators/sushi/templates/pages_index.html.haml
sushifish-0.9.0 lib/generators/sushi/templates/pages_index.html.haml
creature-0.0.6 lib/generators/pages/templates/pages_index.html.haml
creature-0.0.5 lib/generators/pages/templates/pages_index.html.haml
creature-0.0.4 lib/generators/pages/templates/pages_index.html.haml
creature-0.0.3 lib/generators/pages/templates/pages_index.html.haml
creature-0.0.2 lib/generators/pages/templates/pages_index.html.haml