From 3752ad5160c05bc8d28a5d0fedca135b82fa7e70 Mon Sep 17 00:00:00 2001 From: catborise Date: Thu, 5 Dec 2019 11:33:07 +0300 Subject: [PATCH] Hypervisor list rearrange view on Host overview, if it is more than 4 --- computes/templates/overview.html | 33 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/computes/templates/overview.html b/computes/templates/overview.html index e6f824f..d230df5 100644 --- a/computes/templates/overview.html +++ b/computes/templates/overview.html @@ -53,31 +53,30 @@

{{ hostname }}

- {% for arch, hpv in hypervisor.items %} - {% if forloop.counter < 4 %} -
+ {% for arch, hpv in hypervisor.items|slice:":4" %} +
+ + +
+ {% endfor %} + {% if hypervisor.items|length > 4 %} -
- {% else %} - - {% endif %} - {% endfor %}

{{ emulator }}