Add expandable rows to dashboard tables

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-11-14 15:32:16 +01:00
1 parent e9758499ff
commit 536aee1f31
4 files changed
+88 -3

No files matched your search

@@ -31,7 +31,7 @@
</section>
<section class="card">
<h2>Letzte 50 Fänge</h2>
<h2>Letzte 50 Fänge <span class="hint">Zeile anklicken zum Aufklappen</span></h2>
@if (data.Recent.Count == 0)
{
<p class="muted">Noch nichts gefangen.</p>
@@ -54,7 +54,7 @@
<tbody>
@foreach (var trapEvent in data.Recent)
{
<tr>
<tr data-expand="event:@trapEvent.Id" tabindex="0" aria-expanded="false">
<td class="nowrap">@trapEvent.StartedAt.ToLocalTime().ToString("dd.MM. HH:mm:ss")</td>
<td class="mono">@trapEvent.RemoteIp</td>
<td class="mono clip" title="@trapEvent.Target">@trapEvent.Target</td>
@@ -71,6 +71,8 @@
</section>
}
<script src="@Assets["dashboard.js"]" defer></script>
@code {
private DashboardData? _data;
private DateTime _loadedAt;