improve error handling around a zone that doesnt exist.

part of ticket #4
This commit is contained in:
Jeffrey Forman 2011-04-17 22:32:17 -04:00
parent 5c7d18deb7
commit 53d101ccb2
2 changed files with 13 additions and 23 deletions

View File

@ -1,18 +1,22 @@
<html> <html>
{% block header %} {% block header %}
<head> <head>
<title>Binder DNS Admin Tool</title> <title>Binder DNS Admin</title>
<link rel="stylesheet" type="text/css" href="/static/style.css" /> <link rel="stylesheet" type="text/css" href="/static/style.css" />
</head> </head>
{% endblock header %} {% endblock header %}
<body> {% block navigation %}
{% block errors %} <a href="/">Home</a>
<<<<<<< HEAD <hr>
======= {% endblock navigation %}
>>>>>>> 885b106... Handle errors when trying to retrieve zone list from NS server {% block pageheader %}
{% endblock pageheader %}
<body>
{% if errors %} {% if errors %}
{% block errors %}
<div class="errors"> <div class="errors">
Errors were encountered: Errors were encountered:
<br> <br>
@ -23,23 +27,9 @@
<br> <br>
{{ error_context }} {{ error_context }}
{% endif %} {% endif %}
<<<<<<< HEAD
<hr> <hr>
{% endif %}
{% endblock errors %} {% endblock errors %}
=======
<hr>
{% endif %} {% endif %}
{% endblock errors %}
<br>
{% block body %}
>>>>>>> 885b106... Handle errors when trying to retrieve zone list from NS server
<br> <br>
{% block body %} {% block body %}
{% endblock body %} {% endblock body %}

View File

@ -1,9 +1,9 @@
{% extends "base.htm" %} {% extends "base.htm" %}
{% block pageheader %}
Server List:
{% endblock pageheader %}
{% block body %} {% block body %}
DNS Server List:
<br>
<ul> <ul>
{% for current_server in server_list %} {% for current_server in server_list %}
<li> <a href="/info/{{ current_server }}/"> {{ current_server }} </li> <li> <a href="/info/{{ current_server }}/"> {{ current_server }} </li>