feat(cms): improve admin content editing
This commit is contained in:
parent
12d31f5468
commit
a284bbc188
26 changed files with 362 additions and 147 deletions
|
|
@ -52,6 +52,22 @@ export default async function AdminSystemPage() {
|
|||
<li>SMTP-Versand ist serverseitig aktiv, sofern eine vollständige Konfiguration gespeichert ist.</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section className="admin-card">
|
||||
<h2>Letzte Content-Backups</h2>
|
||||
<table className="admin-table">
|
||||
<thead><tr><th>Seite</th><th>Datum</th><th>Dateiname</th></tr></thead>
|
||||
<tbody>
|
||||
{contentStatus.backups.map((backup) => (
|
||||
<tr key={backup.fileName}>
|
||||
<td>{backup.page}</td>
|
||||
<td>{new Date(backup.createdAt).toLocaleString("de-DE")}</td>
|
||||
<td>{backup.fileName}</td>
|
||||
</tr>
|
||||
))}
|
||||
{contentStatus.backups.length === 0 && <tr><td colSpan={3}>Noch keine Content-Backups vorhanden.</td></tr>}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</AdminShell>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue