modified: netbox_dns_bridge/navigation.py

new file:   netbox_dns_bridge/templates/netbox_dns_bridge/catz_overview.html
deleted:    netbox_dns_bridge/templates/netbox_dns_bridge/info.html
new file:   netbox_dns_bridge/templates/netbox_dns_bridge/notify_overview.html
modified:   netbox_dns_bridge/urls.py
modified:   netbox_dns_bridge/views.py
Extend views
This commit is contained in:
Sven Luethi authored and Sven Luthi committed 2026-08-11 18:30:29 +02:00
1 parent 60bc60ccc4
commit 9f71ff7332
6 files changed
+157 -112

No files matched your search

@@ -0,0 +1,68 @@
{% extends 'base/layout.html' %}
{% block title %}Catalog Zone Info{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-12">
<div class="card mb-3">
<h5 class="card-header">Catalog Zone SOA Serial Number</h5>
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th>Value</th>
</tr>
</thead>
<tbody>
{% if soa_serial is not None %}
<tr>
<td>{{ soa_serial }}</td>
</tr>
{% else %}
<tr><td class="text-muted">Not yet initialized.</td></tr>
{% endif %}
</tbody>
</table>
</div>
</div>
{% for view_name, rows in zones_grouped.items %}
<div class="card mb-3">
<h5 class="card-header">Zone Identifiers | {{ view_name }}</h5>
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th>Zone</th>
<th>Active</th>
<th>Catalog Zone Identifier</th>
</tr>
</thead>
<tbody>
{% for z in rows %}
<tr>
<td>{{ z.name }}</td>
<td>{{ z.active|yesno:"Yes,No" }}</td>
<td>{{ z.catz_identifier|default:"—" }}</td>
</tr>
{% empty %}
<tr><td colspan="3" class="text-muted">No zones in this view.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% empty %}
<div class="card mb-3">
<h5 class="card-header">Zone Identifiers</h5>
<div class="card-body">
<p class="text-muted">No zones found.</p>
</div>
</div>
{% endfor %}
</div>
</div>
{% endblock %}
@@ -1,89 +0,0 @@
{% extends 'base/layout.html' %}
{% block title %}DNS Bridge Info{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-12">
<div class="card mb-3">
<h5 class="card-header">Integer Key-Value Settings</h5>
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
{% for s in settings_rows %}
<tr>
<td>{{ s.key }}</td>
<td>{{ s.value }}</td>
</tr>
{% empty %}
<tr><td colspan="2" class="text-muted">No settings found.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="card mb-3">
<h5 class="card-header">Seen Transfer Clients</h5>
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th>Source IP</th>
<th>View</th>
<th>Last Seen</th>
</tr>
</thead>
<tbody>
{% for c in seen_clients %}
<tr>
<td>{{ c.source_ip }}</td>
<td>{{ c.view.name }}</td>
<td>{{ c.last_seen|date:"Y-m-d H:i:s" }}</td>
</tr>
{% empty %}
<tr><td colspan="3" class="text-muted">No seen transfer clients.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="card mb-3">
<h5 class="card-header">Zones &amp; Catalog Zone Identifiers</h5>
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th>Zone</th>
<th>View</th>
<th>Active</th>
<th>Catalog Zone Identifier</th>
</tr>
</thead>
<tbody>
{% for z in zones %}
<tr>
<td>{{ z.name }}</td>
<td>{{ z.view|default:"—" }}</td>
<td>{{ z.active|yesno:"Yes,No" }}</td>
<td>{{ z.catz_identifier|default:"—" }}</td>
</tr>
{% empty %}
<tr><td colspan="4" class="text-muted">No zones found.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endblock %}
@@ -0,0 +1,37 @@
{% extends 'base/layout.html' %}
{% block title %}DNS Bridge Notify{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-12">
<div class="card mb-3">
<h5 class="card-header">Seen Transfer Clients</h5>
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th>Source IP</th>
<th>View</th>
<th>Last Seen</th>
</tr>
</thead>
<tbody>
{% for c in seen_clients %}
<tr>
<td>{{ c.source_ip }}</td>
<td>{{ c.view.name }}</td>
<td>{{ c.last_seen|date:"Y-m-d H:i:s" }}</td>
</tr>
{% empty %}
<tr><td colspan="3" class="text-muted">No seen transfer clients.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endblock %}