1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00

feat(operations): jobs page

This commit is contained in:
catborise 2026-10-13 20:26:07 +03:00
parent 9c7943a0c8
commit 0fb0eb2bac
13 changed files with 564 additions and 2 deletions

View file

@ -36,6 +36,7 @@ class DetailOfUnreachableHostTests(TestCase):
self.assertIn("far-vm", messages[0])
self.assertNotIn("far-host", messages[0])
self.assertNotIn("10.0.0.9", messages[0])
self.assertIn("Jobs", messages[0])
def test_superuser_sees_the_host_and_its_error(self):
admin = get_user_model().objects.create_superuser("far-admin", password="pw", email="far@example.com")

View file

@ -102,7 +102,7 @@ def instance(request, pk):
}
else:
msg = _("The host of '%(name)s' cannot be reached right now.") % {"name": instance.name}
messages.error(request, msg)
messages.error(request, msg + _(" Jobs on it can be followed under Jobs in the menu."))
return redirect(reverse("instances:index"))
# The page only reads the VM, and its getters read the same XML some 30
# times: libvirt is asked once per kind of XML.