From e28cc7171087740d37cc3fa14bc934c929b3b0f1 Mon Sep 17 00:00:00 2001 From: catborise Date: Tue, 29 Jan 2019 09:28:42 +0300 Subject: [PATCH] Do not show Network devices header if there is not any. --- instances/templates/instance.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/instances/templates/instance.html b/instances/templates/instance.html index 3ba2a59..e2d3c03 100644 --- a/instances/templates/instance.html +++ b/instances/templates/instance.html @@ -805,13 +805,16 @@

- {% trans "Assign network device to bridge" %} + {% trans "Add a network device" %} {% include 'add_instance_network_block.html' %}

-

{% trans "Network devices" %}

+
{% csrf_token %} {% for network in networks %} + {% if forloop.first %} +

{% trans "Network Devices" %}

+ {% endif %}