From a2da2ab3941be1730f9f1ac27f7526a1a6159b26 Mon Sep 17 00:00:00 2001 From: catborise Date: Sun, 22 Nov 2026 14:40:23 +0300 Subject: [PATCH] fix(ui): a host's pages on a phone: one row of sections, tables that fit On a phone the host's section menu wrapped to three lines, each new line starting with a divider. It is now one row that scrolls sideways, with the current section in sight (scroll_rows.js, which also takes over the VM page's tab rows from instance_page.js). The filter list, a filter's rules and the PCI and USB device tables were wider than a phone and hid their actions and users off screen; on a phone they now keep the name, the key column and the actions, as the other lists do. The overview's live CPU and memory figures, the chart axes and tooltips, and the VM page's stats now write numbers as the page's language does (a decimal comma in Turkish), like the cards beside them. The capacity cards said "0 bytes running"; they now say what they count: "0 bytes in running VMs". A pool's type is written as libvirt names it on both the list and its page, and the device search sits where the interfaces search does. --- .../templates/computes/capacity_memory.html | 2 +- .../templates/computes/capacity_vcpus.html | 2 +- computes/templates/computes/host_nav.html | 2 +- computes/tests/test_capacity.py | 4 +-- computes/tests/test_cpu_graph.py | 4 +-- computes/tests/test_overview.py | 2 +- instances/tests/test_stats_sample.py | 2 +- locale/tr/LC_MESSAGES/django.mo | Bin 268352 -> 268436 bytes locale/tr/LC_MESSAGES/django.po | 4 +++ locale/zh/LC_MESSAGES/django.mo | Bin 251337 -> 251417 bytes locale/zh/LC_MESSAGES/django.po | 4 +++ nodedevs/templates/nodedevs.html | 26 +++++++++--------- nwfilters/templates/nwfilter.html | 12 ++++---- nwfilters/templates/nwfilters.html | 17 ++++++------ static/css/webvirtcloud.css | 9 +++++- static/js/charts.js | 8 +++++- static/js/host_graphs.js | 6 ++-- static/js/instance_page.js | 8 ------ static/js/instance_stats.js | 4 +-- static/js/scroll_rows.js | 12 ++++++++ storages/templates/storage.html | 2 +- storages/templates/storages.html | 2 +- storages/tests/test_pool_page.py | 6 ++-- templates/base.html | 1 + 24 files changed, 84 insertions(+), 55 deletions(-) create mode 100644 static/js/scroll_rows.js diff --git a/computes/templates/computes/capacity_memory.html b/computes/templates/computes/capacity_memory.html index 03d121fa..98b57839 100644 --- a/computes/templates/computes/capacity_memory.html +++ b/computes/templates/computes/capacity_memory.html @@ -15,4 +15,4 @@
-
{% blocktrans with running=given.assigned.running|filesizeformat %}{{ running }} running{% endblocktrans %}
+
{% blocktrans with running=given.assigned.running|filesizeformat %}{{ running }} in running VMs{% endblocktrans %}
diff --git a/computes/templates/computes/capacity_vcpus.html b/computes/templates/computes/capacity_vcpus.html index f49174bf..e8802210 100644 --- a/computes/templates/computes/capacity_vcpus.html +++ b/computes/templates/computes/capacity_vcpus.html @@ -15,4 +15,4 @@
-
{% blocktrans with running=given.vcpus.running %}{{ running }} running{% endblocktrans %}
+
{% blocktrans with running=given.vcpus.running %}{{ running }} in running VMs{% endblocktrans %}
diff --git a/computes/templates/computes/host_nav.html b/computes/templates/computes/host_nav.html index daee1973..c6a2fd2b 100644 --- a/computes/templates/computes/host_nav.html +++ b/computes/templates/computes/host_nav.html @@ -2,7 +2,7 @@ {% load bootstrap_icons %} {# The host's sections. section: the one this page belongs to; detail: the page is an item of it (a pool, a network), not the section's own page #}