From 0d50b1f18993827cb6862efeedea528b64fad164 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 21 Oct 2023 13:24:24 -0400 Subject: Added quote moderation panel --- app/views/admin/quotes/index.html.haml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app/views/admin/quotes/index.html.haml (limited to 'app/views/admin/quotes/index.html.haml') diff --git a/app/views/admin/quotes/index.html.haml b/app/views/admin/quotes/index.html.haml new file mode 100644 index 0000000..afe2c20 --- /dev/null +++ b/app/views/admin/quotes/index.html.haml @@ -0,0 +1,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 -- cgit 1.4.1