about summary refs log tree commit diff stats
path: root/app/views/admin/quotes/index.html.haml
blob: afe2c20e45c57f58d410e2196e6ebf01208c3450 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- title "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 "View", quote
          %li= link_to "Delete", admin_quote_url(quote), method: :delete, data: { confirm: "Are you sure?" }
= will_paginate @quotes