Add pending donations to admin donations index
And add more info to the details page
This commit is contained in:
@@ -5,6 +5,7 @@ class Admin::DonationsController < Admin::BaseController
|
||||
# GET /donations
|
||||
def index
|
||||
@pagy, @donations = pagy(Donation.completed.order('paid_at desc'))
|
||||
@pending_donations = Donation.incomplete.order('paid_at desc')
|
||||
|
||||
@stats = {
|
||||
overall_sats: @donations.sum("amount_sats"),
|
||||
|
||||
Reference in New Issue
Block a user