From 591ec4a1f5487ca94556de7564ae749c794b7b45 Mon Sep 17 00:00:00 2001 From: catborise Date: Tue, 27 Oct 2026 14:57:50 +0300 Subject: [PATCH] fix(computes): the host sections are a breadcrumb again; capacity lines wrap in their card #241 made the host sections pills: on a desktop they took two lines, unlike the breadcrumb the pages had. computes/host_nav.html is the breadcrumb again, one line at 1200 px and wider, still shared by the eleven host pages: the section's own page is its bold item with aria-current="page", an item page (a pool, a network) links its section in bold with aria-current="true". The capacity lines were kept on one line, made for the Computes table: in the overview's narrower cards a long memory line ran out of its card. They now wrap. --- .../templates/computes/capacity_memory.html | 2 +- .../templates/computes/capacity_vcpus.html | 2 +- computes/templates/computes/host_nav.html | 41 +++++++++++-------- computes/templates/computes/pool_bar.html | 2 +- computes/tests/test_host_nav.py | 16 ++++---- 5 files changed, 35 insertions(+), 28 deletions(-) diff --git a/computes/templates/computes/capacity_memory.html b/computes/templates/computes/capacity_memory.html index ff436b5b..08d65ad9 100644 --- a/computes/templates/computes/capacity_memory.html +++ b/computes/templates/computes/capacity_memory.html @@ -1,6 +1,6 @@ {% load i18n %} {# the memory a host has given its VMs: given, from views.shown_capacity #} -
{% blocktrans with all=given.assigned.all|filesizeformat memory=given.memory|filesizeformat %}{{ all }} given of {{ memory }}{% endblocktrans %}
+
{% blocktrans with all=given.assigned.all|filesizeformat memory=given.memory|filesizeformat %}{{ all }} given of {{ memory }}{% endblocktrans %}