Sha256: ed1725a11e09754e194dca5b37563150c0c3ab08636d753764f6f814506e819a

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

%h1 Comments index
.buttons
  = link_to("New comment", new_comment_path) if user_can?(:create, Comment)

%table
  %th
    %td View
    %td Edit
    %td Delete

  - comments.each do |comment|
    %tr
      %td
        = link_to(comment.title, comment_path(comment)) if user_can?(:read, comment)
      %td
        = link_to("Edit", edit_comment_path(comment)) if user_can?(:edit, comment)
      %td
        = link_to("Delete", delete_comment_path(post)) if user_can?(:delete, comment)


Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
cantango-0.8.0 spec/devise-dummy/app/views/comments/index.html.haml
cantango-0.8.0 spec/dummy/app/views/comments/index.html.haml