diff --git a/app/static/style.css b/app/static/style.css index 6b6f1a3..7f47e84 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -545,6 +545,20 @@ main { flex-shrink: 0; } +.ct-summary-item.nested { + padding-left: 14px; + opacity: 0.8; +} + +.vm-containers { + margin-top: 6px; + padding-top: 4px; + border-top: 1px dashed #334155; + display: flex; + flex-direction: column; + gap: 2px; +} + /* --- Container / VM Sub-cards --- */ .container-grid { diff --git a/app/templates/index.html b/app/templates/index.html index 1672602..e729df8 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -73,7 +73,16 @@ {% endif %} - {% set containers = d.get('container', []) if d.get('container') else [] %} + {% set containers_raw = d.get('container', []) if d.get('container') else [] %} + {% set child_vms = children_map.get(server.hostname, []) %} + {% set child_names = child_vms|map(attribute='hostname')|list %} + {% set containers = [] %} + {% for ct in containers_raw %} + {% set ct_name = ct.get('name', ct.get('id', '')) %} + {% if ct_name not in child_names %} + {% set _ = containers.append(ct) %} + {% endif %} + {% endfor %} {% if server.is_online %}
{% endif %} - {% set child_vms = children_map.get(server.hostname, []) %} {% if containers or child_vms %}