feat: Actualizar las rutas de inclusión en las vistas del panel de control para mejorar la estructura del código

This commit is contained in:
Shni
2025-10-15 09:28:14 -05:00
parent aad5c7b111
commit 0ab59bf6a8
2 changed files with 11 additions and 18 deletions

View File

@@ -3,18 +3,18 @@
<div class="relative"> <div class="relative">
<% if (!selectedGuild) { %> <% if (!selectedGuild) { %>
<!-- When no guild selected show centered card --> <!-- When no guild selected show centered card -->
<%- include('partials/dashboard/dashboard_noguild_card') %> <%- include('../partials/dashboard/dashboard_noguild_card') %>
<% } else { %> <% } else { %>
<!-- When a guild is selected render sidebar + content layout --> <!-- When a guild is selected render sidebar + content layout -->
<div class="w-full max-w-7xl mx-auto mt-6 px-4"> <div class="w-full max-w-7xl mx-auto mt-6 px-4">
<div class="flex items-start gap-8"> <div class="flex items-start gap-8">
<%- include('partials/dashboard/dashboard_sidebar') %> <%- include('../partials/dashboard/dashboard_sidebar') %>
<div id="dashContent" class="flex-1"> <div id="dashContent" class="flex-1">
<!-- initial fragment content will be rendered inside #dashMain by partials --> <!-- initial fragment content will be rendered inside #dashMain by partials -->
<% if (typeof page !== 'undefined' && page === 'overview') { %> <% if (typeof page !== 'undefined' && page === 'overview') { %>
<%- include('partials/dashboard/dashboard_overview') %> <%- include('../partials/dashboard/dashboard_overview') %>
<% } else if (typeof page !== 'undefined' && page === 'settings') { %> <% } else if (typeof page !== 'undefined' && page === 'settings') { %>
<div id="dashMain"><%- include('partials/dashboard/dashboard_settings') %></div> <div id="dashMain"><%- include('../partials/dashboard/dashboard_settings') %></div>
<% } else { %> <% } else { %>
<div id="dashMain"><!-- empty main placeholder --></div> <div id="dashMain"><!-- empty main placeholder --></div>
<% } %> <% } %>

View File

@@ -1,13 +1,6 @@
<div class="w-full max-w-7xl mx-auto mt-6 px-4"> <div id="dashMain">
<div class="flex gap-8">
<%- include('partials/dashboard/dashboard_sidebar') %>
<!-- Main column -->
<main id="dashMain" class="flex-1 mx-auto">
<div class="mb-6"> <div class="mb-6">
<h1 class="text-4xl font-bold text-white">Welcome <span class="text-blue-400"><%= user?.username || 'Admin' %></span>,</h1> <h1 class="text-4xl font-bold text-white">Welcome <span class="text-blue-400"><%= user?.username || 'Admin' %></span>,</h1>
</div> </div>
<!-- overview content can expand here --> <!-- overview content can expand here -->
</main>
</div>
</div> </div>