From 8a04c681b1df745a8463a9757e05d21a9e970756 Mon Sep 17 00:00:00 2001 From: Scooter <92922224+scooterthedev@users.noreply.github.com> Date: Mon, 8 Dec 2025 00:18:11 -0500 Subject: [PATCH] adding account explosions to the sidebar for supadmins (#693) --- app/views/shared/_nav.html.erb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/views/shared/_nav.html.erb b/app/views/shared/_nav.html.erb index bd9fde7..bb9e17e 100644 --- a/app/views/shared/_nav.html.erb +++ b/app/views/shared/_nav.html.erb @@ -142,6 +142,15 @@ <% end %> <% end %> <% end %> + <% superadmin_tool(nil, "div") do %> + <%= link_to admin_deletion_requests_path, class: "block px-2 py-1 rounded-lg transition #{current_page?(admin_deletion_requests_path) ? 'bg-primary/50 text-primary' : 'hover:bg-[#23272a]'}", data: { action: "click->nav#clickLink" } do %> + Account Deletions + <% pending_count = DeletionRequest.pending.count %> + <% if pending_count > 0 %> + <%= pending_count %> + <% end %> + <% end %> + <% end %> <% superadmin_tool(nil, "div") do %> <%= link_to ahoy_captain_path, class: "block px-2 py-1 rounded-lg transition #{current_page?(ahoy_captain_path) ? 'bg-primary/50 text-primary' : 'hover:bg-[#23272a]'}", data: { action: "click->nav#clickLink" } do %> Ahoy Captain