From 9c549024b1d64d2bb3769581a480ad58bd1a1c26 Mon Sep 17 00:00:00 2001 From: SelfhostedPro Date: Tue, 30 Jun 2020 15:42:55 -0700 Subject: [PATCH] fixed ports on deployform --- app/templates/apps/manage_app.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/templates/apps/manage_app.html b/app/templates/apps/manage_app.html index c9197e9e..79fc3b45 100644 --- a/app/templates/apps/manage_app.html +++ b/app/templates/apps/manage_app.html @@ -50,10 +50,12 @@ {% for cport, others in container.ports.items() %} {{cport}} - {% for value in others %} - {{ value.get('HostIp') }} - {{ value.get('HostPort') }} - {% endfor %} + {% if others %} + {% for value in others %} + {{ value.get('HostIp') }} + {{ value.get('HostPort') }} + {% endfor %} + {% endif %} {% endfor %}