Files
2026-05-14 02:27:26 +01:00

65 lines
2.7 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Audit - KlipperAnywhere</title>
<meta name="description" content="Audit log for KlipperAnywhere actions.">
<meta id="csrf-meta" name="csrf-token" content="{{CSRF_TOKEN}}">
<link rel="stylesheet" href="/static/styles.css">
<link rel="icon" href="/favicon.ico">
<link rel="icon" type="image/png" href="/static/assets/favicon.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
</head>
<body class="app-page">
<header class="app-header">
<a class="brand" href="/">
<span class="brand-mark" aria-hidden="true">K</span>
<span>KlipperAnywhere</span>
</a>
<nav class="nav-links" aria-label="Audit navigation">
<div class="nav-group nav-core">
<a class="text-button" href="/dashboard">Dashboard</a>
<a class="text-button" href="/account">Account</a>
<a class="text-button admin-only" href="/admin" hidden>Admin</a>
</div>
<div class="nav-group nav-tools">
<div class="printer-switcher-group" aria-label="Printer switcher">
<label class="printer-switcher-label" for="printer-switcher">Printer</label>
<select id="printer-switcher" class="printer-switcher" aria-label="Switch printer">
<option value="">Loading printers...</option>
</select>
<button class="text-button" id="printer-switcher-open" type="button">Open</button>
</div>
<button class="text-button" id="refresh" type="button">Refresh</button>
<form class="logout-form" method="post" action="/logout">
<input type="hidden" name="csrf_token" value="{{CSRF_TOKEN}}">
<button class="text-button" type="submit">Sign out</button>
</form>
</div>
</nav>
</header>
<main class="dashboard-shell audit-shell">
<section class="dashboard-heading">
<p class="eyebrow">Security trail</p>
<h1 class="dashboard-title">Audit log</h1>
</section>
<section class="detail-panel audit-panel">
<div class="panel-heading">
<h2>Recent events</h2>
<a href="/api/audit?limit=100" id="audit-json-link">JSON</a>
</div>
<p id="audit-status" class="empty-state">Loading audit events...</p>
<div id="audit-list" class="audit-list"></div>
</section>
</main>
<script src="/static/session.js"></script>
<script src="/static/printer-switcher.js"></script>
<script src="/static/session.js"></script>
<script src="/static/audit.js"></script>
</body>
</html>