fixed template for #28

This commit is contained in:
thomasDOTde 2018-03-28 14:19:48 +02:00
parent 88c6d6ee33
commit f5a0052a06

View File

@ -2,14 +2,18 @@
{% block title %}<title>DNS Control Panel - Domain Management</title>{% endblock %}
{% block dashboard_stat %}
{% if status != None %}
{% if status['status'] == 'ok' %}
{% if status %}
{% if status.get('status') == 'ok' %}
<div class="alert alert-success">
<strong>Success!</strong> {{ status['msg'] }}
<strong>Success!</strong> {{ status.get('msg') }}
</div>
{% else %}
{% elif status.get('status') == 'error' %}
<div class="alert alert-danger">
<strong>Error!</strong> {{ status['msg'] }}
{% if status.get('msg') != None %}
<strong>Error!</strong> {{ status.get('msg') }}
{% else %}
<strong>Error!</strong> An undefined error occurred.
{% endif %}
</div>
{% endif %}
{% endif %}