- title "Pending Comments" = will_paginate @comments %table#entries %tr %th Text %th Author %th Blog post %th Date updated %th - @comments.each do |comment| %tr{ class: cycle("even", "odd") } %td= comment.body %td %ul %li= comment.username %li= comment.email - unless comment.website.empty? %li= comment.website %td= link_to comment.blog.title, comment.blog %td= comment.created_at.strftime("%B %d, %Y, %l:%M%P") %td %ul.admin-actions %li= link_to "Accept", accept_admin_comment_url(comment), method: :post, data: { confirm: "Are you sure you want to accept this comment?" } %li= link_to "Reject", reject_admin_comment_url(comment), method: :post, data: { confirm: "Are you sure you want to reject this comment?" } %li= link_to "Mark Spam", mark_spam_admin_comment_url(comment), method: :post, data: { confirm: "Are you sure you want to mark this comment as spam?" } = will_paginate @comments