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 @@