fix: remove include() wrapper from all admin module templates

ISSUE:
All module templates still had old EJS v2 include() wrapper
Caused 'include is not a function' errors

FIX:
Removed first and last line (include wrapper) from:
- servers/index.ejs
- players/index.ejs
- roles/index.ejs
- grace/index.ejs
- audit/index.ejs
- financials/index.ejs

Same fix as dashboard.ejs - express-ejs-layouts handles layout injection

Signed-off-by: Claude (Chronicler #57) <claude@firefrostgaming.com>
This commit is contained in:
Claude (Chronicler #57)
2026-04-03 17:46:16 +00:00
parent 2e058a7d87
commit 127b7677fc
6 changed files with 0 additions and 12 deletions

View File

@@ -1,4 +1,3 @@
<%- include('../../layout', { body: `
<div class="mb-6 flex justify-between items-center">
<div>
<h1 class="text-2xl font-bold dark:text-white flex items-center gap-2">
@@ -25,4 +24,3 @@
<div class="p-8 text-center text-gray-500 animate-pulse">Loading secure audit logs...</div>
</div>
</div>
`}) %>

View File

@@ -1,4 +1,3 @@
<%
// Build the body content as a string variable
let bodyContent = `
<div class="mb-6 flex justify-between items-center">
@@ -148,4 +147,3 @@ bodyContent += `
`;
%>
<%- include('../../layout', { body: bodyContent }) %>

View File

@@ -1,4 +1,3 @@
<%- include('../../layout', { body: `
<div class="mb-6 flex justify-between items-center">
<div>
<h1 class="text-2xl font-bold dark:text-white flex items-center gap-2">
@@ -21,4 +20,3 @@
</div>
</div>
</div>
`}) %>

View File

@@ -1,4 +1,3 @@
<%- include('../../layout', { body: `
<div class="bg-white dark:bg-darkcard rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
<div class="p-4 border-b border-gray-200 dark:border-gray-700 flex justify-between items-center">
<input type="text"
@@ -33,4 +32,3 @@
</table>
</div>
</div>
`}) %>

View File

@@ -1,4 +1,3 @@
<%- include('../../layout', { body: `
<div class="mb-6 flex justify-between items-center">
<div>
<h1 class="text-2xl font-bold dark:text-white flex items-center gap-2">
@@ -20,4 +19,3 @@
Click "Run Diagnostic Scan" to query the Discord API. (This takes a few seconds).
</div>
</div>
`}) %>

View File

@@ -1,4 +1,3 @@
<%- include('../../layout', { body: `
<div class="mb-6 flex justify-between items-center">
<div>
<h1 class="text-2xl font-bold dark:text-white">Server Matrix</h1>
@@ -26,4 +25,3 @@
</div>
</div>
`}) %>