fixed uploads table (1)

This commit is contained in:
Ludwig Lehnert
2026-01-29 20:26:42 +01:00
parent 57b42ca8ec
commit 6093a13140

View File

@@ -1008,10 +1008,11 @@ app.get(`${basePath}/admin/dashboard`, requireAdminPage, async (req, res) => {
<section class="card"> <section class="card">
<h2>Aktuelle Uploads</h2> <h2>Aktuelle Uploads</h2>
${uploads.length ? ` ${allUploads.length ? `
<table> <table>
<thead> <thead>
<tr> <tr>
<th>Nutzer</th>
<th>Datei</th> <th>Datei</th>
<th>Größe</th> <th>Größe</th>
<th>Läuft ab</th> <th>Läuft ab</th>
@@ -1019,7 +1020,7 @@ app.get(`${basePath}/admin/dashboard`, requireAdminPage, async (req, res) => {
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
${rows} ${adminUploadsRows}
</tbody> </tbody>
</table> </table>
` : '<div class="muted">Noch keine Uploads.</div>'} ` : '<div class="muted">Noch keine Uploads.</div>'}