From 69b701c035e95ec2a832215a6fe5b0288c19803f Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Tue, 2 Dec 2025 11:12:38 -0500 Subject: [PATCH] Add recent signups to the dashboard --- app/controllers/admin/stats_controller.rb | 2 ++ app/views/admin/stats/show.html.erb | 31 +++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/app/controllers/admin/stats_controller.rb b/app/controllers/admin/stats_controller.rb index 92b49d3ce..6d508fc2c 100644 --- a/app/controllers/admin/stats_controller.rb +++ b/app/controllers/admin/stats_controller.rb @@ -14,5 +14,7 @@ class Admin::StatsController < AdminController .where("cards_count > 0") .order(cards_count: :desc) .limit(20) + + @recent_accounts = Account.order(created_at: :desc).limit(10) end end diff --git a/app/views/admin/stats/show.html.erb b/app/views/admin/stats/show.html.erb index a3ae18c55..7c7491d2a 100644 --- a/app/views/admin/stats/show.html.erb +++ b/app/views/admin/stats/show.html.erb @@ -61,6 +61,37 @@ +
+
+

+ 10 Most Recent Signups +

+
+ + +
+