Sha256: 2e023b0528ac8787f90c5c5fc6673e527beca9b7b49be891f47304c8751e82cc

Contents?: true

Size: 470 Bytes

Versions: 15

Compression:

Stored size: 470 Bytes

Contents

- title "Pages"

%table
  %tr
    %th Title
    %th Menu
    %th Body
    %th User
  - for page in @pages
    %tr
      %td= page.title
      %td= page.menu
      %td= page.body[0,200]
      %td= page.user_id
      %td= link_to 'Show', page
      -if can? :edit, page
        %td= link_to 'Edit', edit_page_path(page)
        %td= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete

%p
  -if can? :new, Page
    = link_to "New Page", new_page_path

Version data entries

15 entries across 8 versions & 1 rubygems

Version Path
squeezer-0.2.1 lib/generators/squeezer/templates/app/views/pages/index.html.haml
squeezer-0.2.1 app/views/pages/index.html.haml
squeezer-0.2.0 lib/generators/squeezer/templates/app/views/pages/index.html.haml
squeezer-0.2.0 app/views/pages/index.html.haml
squeezer-0.1.11 app/views/pages/index.html.haml
squeezer-0.1.11 lib/generators/squeezer/templates/app/views/pages/index.html.haml
squeezer-0.1.7 lib/generators/squeezer/templates/app/views/pages/index.html.haml
squeezer-0.1.7 app/views/pages/index.html.haml
squeezer-0.1.6 app/views/pages/index.html.haml
squeezer-0.1.6 lib/generators/squeezer/templates/app/views/pages/index.html.haml
squeezer-0.1.5 lib/generators/squeezer/templates/app/views/pages/index.html.haml
squeezer-0.1.5 app/views/pages/index.html.haml
squeezer-0.1.4 lib/generators/squeezer/templates/app/views/pages/index.html.haml
squeezer-0.1.4 app/views/pages/index.html.haml
squeezer-0.1.3 lib/app/views/pages/index.html.haml