Skip to content

Commit 8a04c68

Browse files
adding account explosions to the sidebar for supadmins (#693)
1 parent 89bad35 commit 8a04c68

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/views/shared/_nav.html.erb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@
142142
<% end %>
143143
<% end %>
144144
<% end %>
145+
<% superadmin_tool(nil, "div") do %>
146+
<%= 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 %>
147+
Account Deletions
148+
<% pending_count = DeletionRequest.pending.count %>
149+
<% if pending_count > 0 %>
150+
<span class="ml-1 px-2 py-0.5 text-xs rounded-full bg-primary text-white font-semibold"><%= pending_count %></span>
151+
<% end %>
152+
<% end %>
153+
<% end %>
145154
<% superadmin_tool(nil, "div") do %>
146155
<%= 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 %>
147156
Ahoy Captain

0 commit comments

Comments
 (0)