about summary refs log tree commit diff stats
path: root/app/views/admin/quotes/pending.html.haml
blob: ef520995df3a01fbc4011f455cd1661453b2875f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- title "Pending Quotes"
= will_paginate @quotes
%table#entries
  %tr
    %th ID
    %th Content
    %th Submitter
    %th Date submitted
    %th
  - @quotes.each do |quote|
    %tr{ class: cycle("even", "odd") }
      %td= quote.id
      %td= quote_format(quote.content)
      %td= quote.submitter
      %td= quote.created_at.strftime("%B %d, %Y, %l:%M%P")
      %td
        %ul.admin-actions
          %li= link_to "Edit", edit_admin_quote_url(quote)
          %li= link_to "Accept", accept_admin_quote_url(quote), method: :post, data: { confirm: "Are you sure you want to accept this quote?" }
          %li= link_to "Reject", admin_quote_url(quote), method: :delete, data: { confirm: "Are you sure you want to reject this quote?" }
= will_paginate @quotes