From fb57763400d75ff2c8b4c7815f09f859ae943478 Mon Sep 17 00:00:00 2001 From: thomasDOTde Date: Wed, 28 Mar 2018 14:19:48 +0200 Subject: [PATCH] fixed template for #28 --- app/templates/domain_management.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/templates/domain_management.html b/app/templates/domain_management.html index b7bbf84de..8ca8507d6 100644 --- a/app/templates/domain_management.html +++ b/app/templates/domain_management.html @@ -2,14 +2,18 @@ {% block title %}DNS Control Panel - Domain Management{% endblock %} {% block dashboard_stat %} - {% if status != None %} - {% if status['status'] == 'ok' %} + {% if status %} + {% if status.get('status') == 'ok' %}
- Success! {{ status['msg'] }} + Success! {{ status.get('msg') }}
- {% else %} + {% elif status.get('status') == 'error' %}
- Error! {{ status['msg'] }} + {% if status.get('msg') != None %} + Error! {{ status.get('msg') }} + {% else %} + Error! An undefined error occurred. + {% endif %}
{% endif %} {% endif %}