Sha256: 7fe7a18edc94a7a0af49fa55bd6d1f8c74f037497af847b3d405b7e4b977e3d6

Contents?: true

Size: 472 Bytes

Versions: 4

Compression:

Stored size: 472 Bytes

Contents

- if can?(:update, comment)
  .comment-tools
    - if can?(:mark_as_ham, comment) && comment.can_mark_as_ham?
      = link_to("Not Spam",
                mark_as_ham_post_comment_path(comment.post, comment),
                :method => :post, :class => "btn")
    - if can?(:mark_as_spam, comment) && comment.can_mark_as_spam?
      = link_to("Spam",
                mark_as_spam_post_comment_path(comment.post, comment),
                :method => :post, :class => "btn")

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_blog_engine-0.0.4 app/views/rails_blog_engine/comments/_tools.html.haml
rails_blog_engine-0.0.3 app/views/rails_blog_engine/comments/_tools.html.haml
rails_blog_engine-0.0.2 app/views/rails_blog_engine/comments/_tools.html.haml
rails_blog_engine-0.0.1 app/views/rails_blog_engine/comments/_tools.html.haml