diff --git a/sld-dashboard/app/home/routes.py b/sld-dashboard/app/home/routes.py index 7027c36f..cdc97787 100644 --- a/sld-dashboard/app/home/routes.py +++ b/sld-dashboard/app/home/routes.py @@ -35,6 +35,10 @@ def decrypt(secreto): external_api_dns = settings.EXTERNAL_DNS_API +def pretty_json(value): + return json.dumps(value, indent=4) + + @blueprint.route("/index") @login_required def index(): diff --git a/sld-dashboard/app/home/templates/deploy-edit.html b/sld-dashboard/app/home/templates/deploy-edit.html index c021bef9..7ade479d 100644 --- a/sld-dashboard/app/home/templates/deploy-edit.html +++ b/sld-dashboard/app/home/templates/deploy-edit.html @@ -72,9 +72,18 @@
{{key}}
{% if "passw" in key %} - {% else %} + {% elif value is number %} + + + + {% elif value is iterable and not value is string %} + + {% elif value is string %} + {% else %} {% endif %} {% endfor %} @@ -153,4 +162,28 @@
{{key}}
$(this).closest('#inputFormRow').remove(); }); + + + {% endblock javascripts %} diff --git a/sld-dashboard/app/home/templates/deploys-list.html b/sld-dashboard/app/home/templates/deploys-list.html index 220bd7d5..519e08ce 100644 --- a/sld-dashboard/app/home/templates/deploys-list.html +++ b/sld-dashboard/app/home/templates/deploys-list.html @@ -189,11 +189,11 @@

All Deploys

{% endif %} - - - - - + + + + + @@ -268,7 +268,6 @@