Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Commit 0face4c

Browse files
committed
📌 chore: / added admin panel button
1 parent 014e743 commit 0face4c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

views/index.ejs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
<div class="flex pt-5 text-sm text-gray-400">
6666
<a href="dashboard/servers" class="flex-no-shrink bg-green-500 hover:bg-green-600 px-5 ml-4 py-2 text-xs shadow-sm hover:shadow-lg font-medium tracking-wider text-white rounded-full transition ease-in duration-300"><i class="fa-solid fa-server"></i> Servers</a>
6767
<a href="profile/me" class="flex-no-shrink bg-yellow-400 hover:bg-yellow-500 px-5 ml-4 py-2 text-xs shadow-sm hover:shadow-lg font-medium tracking-wider text-white rounded-full transition ease-in duration-300"><i class="fa-solid fa-user"></i> Profile</a>
68+
<% if (user.id === process.env.DEVELOPER_ID) { %>
69+
<a href="admin/panel" class="flex-no-shrink bg-purple-600 hover:bg-purple-700 px-5 ml-4 py-2 text-xs shadow-sm hover:shadow-lg font-medium tracking-wider text-white rounded-full transition ease-in duration-300"><i class="ml-1 fa-solid fa-fingerprint"></i> Panel</a>
70+
<% } %>
6871
<a href="/logout" class="flex-no-shrink bg-red-500 hover:bg-red-600 px-5 ml-4 py-2 text-xs shadow-sm hover:shadow-lg font-medium tracking-wider text-white rounded-full transition ease-in duration-300"><i class="fa-solid fa-right-from-bracket"></i> Log out</a>
6972
</div>
7073
</div>

0 commit comments

Comments
 (0)