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

View File

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