Skip to content

Commit

Permalink
fixed template for #28
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasDOTwtf committed Mar 28, 2018
1 parent 566f7da commit fb57763
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions app/templates/domain_management.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit fb57763

Please sign in to comment.