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

feat(instances): the VM list filters by state, and a host's name finds its VMs

The list gets a state selector beside the search box. The search now
matches plain text in any case (a '(' no longer breaks it), and in the
grouped list a host's name shows all of its VMs while a host row shows
only while one of its VMs does. The filter moves to
static/js/instance_filter.js with a Node test; the other lists keep
filter-table.js. Collapsing a host now sets a class on its table body
instead of each row's display, so a collapsed host and the filter no
longer undo each other.
This commit is contained in:
catborise 2026-10-24 16:48:41 +03:00
parent 70e5c317ff
commit 47fadea53c
10 changed files with 152 additions and 11 deletions

View file

@ -1,3 +1,3 @@
{% load vm_states %}
{% if instance.info %}{% vm_state instance.info.0 as state %}{% else %}{% vm_state None as state %}{% endif %}
<span class="text-{{ state.1 }}">{{ state.0 }}</span>
<span class="text-{{ state.1 }}" data-state="{{ state.0 }}">{{ state.0 }}</span>