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:
@@ -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>
|
||||
`}) %>
|
||||
|
||||
@@ -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 }) %>
|
||||
|
||||
@@ -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>
|
||||
`}) %>
|
||||
|
||||
@@ -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>
|
||||
`}) %>
|
||||
|
||||
@@ -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>
|
||||
`}) %>
|
||||
|
||||
@@ -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>
|
||||
`}) %>
|
||||
|
||||
Reference in New Issue
Block a user