package views import ( "vctp/components/core" ) type SnapshotEntry struct { Label string Link string Count int64 Group string } templ SnapshotHourlyList(entries []SnapshotEntry) { @SnapshotListPage("Hourly Inventory Snapshots", "inventory snapshots captured hourly", entries) } templ SnapshotDailyList(entries []SnapshotEntry) { @SnapshotListPage("Daily Inventory Snapshots", "daily summaries of hourly inventory snapshots", entries) } templ SnapshotMonthlyList(entries []SnapshotEntry) { @SnapshotListPage("Monthly Inventory Snapshots", "monthly summary aggregated from daily snapshots", entries) } templ SnapshotListPage(title string, subtitle string, entries []SnapshotEntry) { @core.Header()
Snapshot Library

{title}

{subtitle}

Back to Dashboard

Available Exports

{len(entries)} files
for i, entry := range entries { if entry.Group != "" && (i == 0 || entries[i-1].Group != entry.Group) { } }
Snapshot Records Download
{entry.Group}
{entry.Label}
{entry.Count} records Download XLSX
@core.Footer() }