mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
feat: tag badges choose the tag, untagged rows, counts in the tag list
On the VM and host lists a tag's badge chooses it in the tag list, the
tag list offers "No tag" for the rows without one, and each choice says
how many of the listed rows it shows ("prod (42)"); an owner counts only
their own VMs.
This commit is contained in:
parent
f8cb6f1e0f
commit
904dd860d0
15 changed files with 110 additions and 57 deletions
|
|
@ -106,5 +106,6 @@ class HostTagsTests(TestCase):
|
|||
compute.tags.add(Tag.objects.create(name="rack-1"))
|
||||
response = self.client.get(reverse("computes"))
|
||||
self.assertContains(response, "rack-1")
|
||||
self.assertContains(response, '<option value="rack-1">rack-1</option>', html=True)
|
||||
self.assertContains(response, '<option value="rack-1">rack-1 (1)</option>', html=True)
|
||||
self.assertContains(response, 'data-tag-filter="rack-1"')
|
||||
self.assertContains(response, 'data-tags="rack-1"')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue