From 75b030526102c7f64fd3ef6a345bc6d066ee55fb Mon Sep 17 00:00:00 2001 From: Shni Date: Wed, 15 Oct 2025 03:42:22 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20Mejorar=20la=20visualizaci=C3=B3n=20de?= =?UTF-8?q?=20servidores=20en=20la=20lista,=20separando=20los=20que=20tien?= =?UTF-8?q?en=20bot=20y=20los=20que=20no?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/views/pages/dashboard.ejs | 25 +++++++++++- src/server/views/partials/dashboard_nav.ejs | 43 ++++++++++++++++++--- 2 files changed, 61 insertions(+), 7 deletions(-) diff --git a/src/server/views/pages/dashboard.ejs b/src/server/views/pages/dashboard.ejs index 77fff19..656c11a 100644 --- a/src/server/views/pages/dashboard.ejs +++ b/src/server/views/pages/dashboard.ejs @@ -43,8 +43,9 @@
<% if (guilds && guilds.length) { %> - <% guilds.sort((a,b)=> a.name.localeCompare(b.name)).forEach(g => { %> -
+ <% const sorted = guilds.slice().sort((a,b)=> a.name.localeCompare(b.name)); const withBot = sorted.filter(g=> g.botInGuild !== false); const withoutBot = sorted.filter(g=> g.botInGuild === false); %> + <% withBot.forEach(g => { %> +
<% if (g.icon) { %> icon @@ -60,6 +61,26 @@
<% }) %> + <% if (withoutBot && withoutBot.length) { %> +
+ <% withoutBot.forEach(g => { %> +
+
+ <% if (g.icon) { %> + icon + <% } else { %> +
S
+ <% } %> +
+
<%= g.name %>
+
+
+
+
+
+
+ <% }) %> + <% } %> <% } else { %>
No servers available
<% } %> diff --git a/src/server/views/partials/dashboard_nav.ejs b/src/server/views/partials/dashboard_nav.ejs index 93da660..3d3d568 100644 --- a/src/server/views/partials/dashboard_nav.ejs +++ b/src/server/views/partials/dashboard_nav.ejs @@ -23,8 +23,9 @@