101 lines
3.5 KiB
HTML
101 lines
3.5 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load handletags %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">DNS Overview</div>
|
|
<div class="panel-body">
|
|
|
|
{% if not mnts %}
|
|
<div class="alert alert-danger" role="alert">
|
|
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
|
|
<strong>Warning</strong>: You have no maintainer object. Create one <a class="alert-link" href="{% url "whoisdb:dashboard" %}">here</a> before creating domains.
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
<h4>Your Domains (<a href="{% url "domains:domain-create" %}">New domain</a>)</h4>
|
|
<table class="table">
|
|
<tr>
|
|
<th>Domain</th>
|
|
<th>Nameserver</th>
|
|
<th>MNTs</th>
|
|
<th></th>
|
|
</tr>
|
|
{% for domain in domains %}
|
|
<tr>
|
|
<td><a href="{% url "domains:domain-show" domain.name %}">{{ domain.name }}</a></td>
|
|
<td>
|
|
<ul>
|
|
{% for nameserver in domain.nameservers.all %}
|
|
<li>{{ nameserver|linkObject }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</td>
|
|
<td>{{ domain.mnt_by.all|linkObjects }}</td>
|
|
<td>
|
|
<a href="{% url "domains:domain-check" domain.name %}"><span title="Check DNS" class="glyphicon glyphicon-check"></span></a>
|
|
<a href="{% url "domains:domain-edit" domain.name %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a>
|
|
<a href="{% url "domains:domain-delete" domain.name %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<h4>Your Nameservers (<a href="{% url "domains:nameserver-create" %}">New nameserver</a>)</h4>
|
|
<table class="table">
|
|
<tr>
|
|
<th>Nameserver</th>
|
|
<th>Glue IPv4</th>
|
|
<th>Glue IPv6</th>
|
|
<th>MNTs</th>
|
|
<th></th>
|
|
</tr>
|
|
{% for nameserver in nameservers %}
|
|
<tr>
|
|
<td><a href="{% url "domains:nameserver-show" nameserver.getPK %}">{{ nameserver.name }}</a></td>
|
|
<td>{{ nameserver.glueIPv4|default:"-" }}</td>
|
|
<td>{{ nameserver.glueIPv6|default:"-" }}</td>
|
|
<td>{{ nameserver.mnt_by.all|linkObjects }}</td>
|
|
<td><a href="{% url "domains:nameserver-edit" nameserver.getPK %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a> <a href="{% url "domains:nameserver-delete" nameserver.getPK %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<h4>Your Reverse Zones (<a href="{% url "domains:reversezone-create" %}">New reverse zone</a>)</h4>
|
|
<table class="table">
|
|
<tr>
|
|
<th>Zone</th>
|
|
<th>Network</th>
|
|
<th>Nameserver</th>
|
|
<th></th>
|
|
</tr>
|
|
{% for reversezone in reversezones %}
|
|
<tr>
|
|
<td><a href="{% url "domains:reversezone-show" reversezone.pk %}">{{ reversezone.prefix }}</a></td>
|
|
<td>{{ reversezone.parentNet|linkObject }}</td>
|
|
<td>
|
|
<ul>
|
|
{% for nameserver in reversezone.nameservers.all %}
|
|
<li>{{ nameserver|linkObject }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</td>
|
|
<td>
|
|
<a href="{% url "domains:reversezone-check" reversezone.pk %}"><span title="Check DNS" class="glyphicon glyphicon-check"></span></a>
|
|
<a href="{% url "domains:reversezone-edit" reversezone.pk %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a>
|
|
<a href="{% url "domains:reversezone-delete" reversezone.pk %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|