(ui) Show host runs and snapshots as record cards

Replace the database-style Latest Runs and Snapshots tables on the host
detail page with scannable record cards and host-filtered View all links.

Refs #26
This commit is contained in:
2026-05-21 13:59:16 +02:00
parent 1929196287
commit ab5291b8d3
3 changed files with 129 additions and 50 deletions

View File

@@ -940,6 +940,8 @@ class ViewTests(TestCase):
self.assertContains(response, reverse("queue_manual_backup", args=[host.host]))
self.assertContains(response, reverse("run_detail", args=[BackupRun.objects.get().id]))
self.assertContains(response, reverse("snapshot_detail", args=[snapshot.id]))
self.assertContains(response, f'{reverse("runs_list")}?host={host.host}', html=False)
self.assertContains(response, f'{reverse("snapshots_list")}?host={host.host}', html=False)
def test_host_detail_renders_effective_config_preview(self) -> None:
self.client.force_login(self.staff_user)