about summary refs log tree commit diff stats
path: root/app/views/admin/comments/pending.haml
blob: 3303457dc85852caa963527d6f7129499b5b0b75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
- 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