From f162dd4b2e72d1eba84a89b14c68d77f79fbe287 Mon Sep 17 00:00:00 2001 From: pika Date: Mon, 31 Mar 2025 13:05:40 +0200 Subject: [PATCH] wip --- app/templates/dashboard/app_edit.html | 2 +- app/templates/dashboard/app_form.html | 6 +++--- app/templates/ipam/subnet_view.html | 11 +++++++++-- routes/__init__.py | 0 4 files changed, 13 insertions(+), 6 deletions(-) delete mode 100644 routes/__init__.py diff --git a/app/templates/dashboard/app_edit.html b/app/templates/dashboard/app_edit.html index beea199..9497255 100644 --- a/app/templates/dashboard/app_edit.html +++ b/app/templates/dashboard/app_edit.html @@ -170,4 +170,4 @@ {% endblock %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/templates/dashboard/app_form.html b/app/templates/dashboard/app_form.html index 73f80db..e5c77b0 100644 --- a/app/templates/dashboard/app_form.html +++ b/app/templates/dashboard/app_form.html @@ -106,10 +106,10 @@ - {% if app and app.ports %} - {% for port in app.ports %} + {% if app and app.ports %} + {% for port in app.ports %} @@ -282,4 +282,4 @@ } } -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/templates/ipam/subnet_view.html b/app/templates/ipam/subnet_view.html index d6fa156..764e45c 100644 --- a/app/templates/ipam/subnet_view.html +++ b/app/templates/ipam/subnet_view.html @@ -233,7 +233,14 @@ {% for app in subnet_apps %} - {{ app.name }} + {% if app.url %} + + {{ app.name }} + + {% else %} + {{ app.name }} + {% endif %} + @@ -318,4 +325,4 @@ -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/routes/__init__.py b/routes/__init__.py deleted file mode 100644 index e69de29..0000000