diff options
Diffstat (limited to 'app/views/admin')
| -rw-r--r-- | app/views/admin/comments/pending.haml | 52 |
1 files changed, 29 insertions, 23 deletions
| diff --git a/app/views/admin/comments/pending.haml b/app/views/admin/comments/pending.haml index 3303457..5352b12 100644 --- a/app/views/admin/comments/pending.haml +++ b/app/views/admin/comments/pending.haml | |||
| @@ -1,26 +1,32 @@ | |||
| 1 | - title "Pending Comments" | 1 | - title "Pending Comments" |
| 2 | = will_paginate @comments | 2 | = will_paginate @comments |
| 3 | %table#entries | 3 | = form_tag mass_admin_comments_url, method: :post do |
| 4 | %tr | 4 | #action-box |
| 5 | %th Text | 5 | = select_tag "mass_action", options_for_select(["Delete", "Mark Spam"]), include_blank: true |
| 6 | %th Author | 6 | = submit_tag "Mass action", data: { confirm: "Are you sure you want to do this action?" } |
| 7 | %th Blog post | 7 | %table#entries |
| 8 | %th Date updated | 8 | %tr |
| 9 | %th | 9 | %th= check_box_tag "check_all" |
| 10 | - @comments.each do |comment| | 10 | %th Text |
| 11 | %tr{ class: cycle("even", "odd") } | 11 | %th Author |
| 12 | %td= comment.body | 12 | %th Blog post |
| 13 | %td | 13 | %th Date updated |
| 14 | %ul | 14 | %th |
| 15 | %li= comment.username | 15 | - @comments.each do |comment| |
| 16 | %li= comment.email | 16 | %tr{ class: cycle("even", "odd") } |
| 17 | - unless comment.website.empty? | 17 | %td= check_box_tag "comment_ids[]", comment.id, class: "comment_ids" |
| 18 | %li= comment.website | 18 | %td= comment.body |
| 19 | %td= link_to comment.blog.title, comment.blog | 19 | %td |
| 20 | %td= comment.created_at.strftime("%B %d, %Y, %l:%M%P") | 20 | %ul |
| 21 | %td | 21 | %li= comment.username |
| 22 | %ul.admin-actions | 22 | %li= comment.email |
| 23 | %li= link_to "Accept", accept_admin_comment_url(comment), method: :post, data: { confirm: "Are you sure you want to accept this comment?" } | 23 | - unless comment.website.empty? |
| 24 | %li= link_to "Reject", reject_admin_comment_url(comment), method: :post, data: { confirm: "Are you sure you want to reject this comment?" } | 24 | %li= comment.website |
| 25 | %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?" } | 25 | %td= link_to comment.blog.title, comment.blog |
| 26 | %td= comment.created_at.strftime("%B %d, %Y, %l:%M%P") | ||
| 27 | %td | ||
| 28 | %ul.admin-actions | ||
| 29 | %li= link_to "Accept", accept_admin_comment_url(comment), method: :post, data: { confirm: "Are you sure you want to accept this comment?" } | ||
| 30 | %li= link_to "Reject", reject_admin_comment_url(comment), method: :post, data: { confirm: "Are you sure you want to reject this comment?" } | ||
| 31 | %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?" } | ||
| 26 | = will_paginate @comments | 32 | = will_paginate @comments |
