1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00

fix(ui): lists say they are empty plainly, filter by themselves and fit a phone

- An empty list says so in gray text, as the VM list does, not in a
  yellow warning or a blue notice (host pools, networks, filters,
  secrets, interfaces, tags, removed VMs, backups, schedules, targets).
- The Jobs and Backups filters show only while there is something to
  filter.
- The Jobs, Backups and Logs filters apply once a choice changes or
  Enter is pressed (filter_form.js): no Filter or Search button, and
  Clear the filters only while one is set.
- On a phone the Logs table shows the date, user, VM and message, with
  the result under it, and the Computes table the host and its memory.
This commit is contained in:
catborise 2026-11-21 20:17:13 +03:00
parent 383cbe89a6
commit 70b0b42f8d
22 changed files with 79 additions and 71 deletions

View file

@ -13,9 +13,7 @@
{% include "computes/host_nav.html" with section="virtsecrets" %}
{% if secrets_all is None %}{# not read: the error above says why #}{% elif not secrets_all %}
<div class="alert alert-warning shadow-sm">
{% bs_icon 'exclamation-triangle' %} {% trans "This host has no secrets." %}
</div>
<p class="text-center text-body-secondary py-4">{% trans "This host has no secrets." %}</p>
{% else %}
<div class="card mb-3">
<div class="card-header d-flex flex-wrap align-items-center gap-2">