about summary refs log tree commit diff stats
path: root/app/views/admin/comments/pending.haml
blob: 18ae6c2e76a69072c79e92de81e3f9cd57e8d169 (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
- 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?" }
= will_paginate @comments