2024-04-26 15:29:07 -03:00
|
|
|
{% extends 'base.html' %}
|
2025-04-15 10:22:10 -03:00
|
|
|
{% load i18n %}
|
2024-04-26 15:29:07 -03:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class='row'>
|
|
|
|
<div class='col-lg-6'>
|
|
|
|
<div class="card card-primary card-outline">
|
|
|
|
<div class="card-header">
|
2025-04-15 10:22:10 -03:00
|
|
|
<h3 class="card-title">{% trans 'Static Host List' %}</h3>
|
2024-04-26 15:29:07 -03:00
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
2025-03-01 19:10:15 -03:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
2024-04-26 15:29:07 -03:00
|
|
|
<tr>
|
2025-04-15 10:22:10 -03:00
|
|
|
<th>{% trans 'Hostname' %}</th>
|
|
|
|
<th>{% trans 'IP Address' %}</th>
|
2025-03-01 19:10:15 -03:00
|
|
|
<th></th>
|
2024-04-26 15:29:07 -03:00
|
|
|
</tr>
|
2025-03-01 19:10:15 -03:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% if static_host_list %}
|
|
|
|
{% for static_host in static_host_list %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ static_host.hostname }}</td>
|
|
|
|
<td>{{ static_host.ip_address }}</td>
|
|
|
|
<td class="min-width">
|
|
|
|
<a href="/dns/manage_static_host/?uuid={{ static_host.uuid }}"><i class="fas fa-edit"></i></a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<tr>
|
|
|
|
<td colspan="3"></td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
2025-04-15 10:22:10 -03:00
|
|
|
<a href="/dns/manage_static_host/" class="btn btn-primary">{% trans 'Add' %}</a>
|
|
|
|
<a href="/dns/manage_settings/" class="btn btn-primary">{% trans 'Settings' %}</a>
|
|
|
|
<a href="/dns/apply_config/" class="btn btn-primary">{% trans 'Apply' %}</a>
|
2025-03-01 19:10:15 -03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class='col-lg-12'>
|
|
|
|
<div class="card card-primary card-outline">
|
|
|
|
<div class="card-header">
|
2025-04-15 10:22:10 -03:00
|
|
|
<h3 class="card-title">{% trans 'DNS Filter Lists' %}</h3>
|
2025-03-01 19:10:15 -03:00
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
2024-04-26 15:29:07 -03:00
|
|
|
<tr>
|
2025-03-01 21:42:03 -03:00
|
|
|
<th class="min-width"></th>
|
2025-04-15 10:22:10 -03:00
|
|
|
<th>{% trans 'Name' %}</th>
|
|
|
|
<th>{% trans 'Description' %}</th>
|
|
|
|
<th>{% trans 'Hosts' %}</th>
|
|
|
|
<th>{% trans 'Last Update' %}</th>
|
|
|
|
<th class="min-width">{% trans 'Status' %}</th>
|
|
|
|
<th class="min-width">{% trans 'Update' %}</th>
|
|
|
|
<th class="min-width">{% trans 'Edit' %}</th>
|
2024-04-26 15:29:07 -03:00
|
|
|
</tr>
|
2025-03-01 19:10:15 -03:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% if filter_lists %}
|
|
|
|
{% for filter_list in filter_lists %}
|
|
|
|
<tr>
|
2025-03-01 21:42:03 -03:00
|
|
|
<td>{% if filter_list.recommended %}
|
|
|
|
<i class="far fa-star" title="This is a recommended filter list"></i>
|
|
|
|
{% endif %}</td>
|
2025-03-01 19:10:15 -03:00
|
|
|
<td>{{ filter_list.name }}</td>
|
|
|
|
<td>{{ filter_list.description }}</td>
|
|
|
|
<td>{{ filter_list.host_count }}</td>
|
|
|
|
<td>{{ filter_list.last_updated|default_if_none:"" }}</td>
|
|
|
|
<td>
|
2025-03-01 21:42:03 -03:00
|
|
|
{% if filter_list.enabled %}
|
|
|
|
<a class="text-green" href="/dns/toggle_dns_list/?uuid={{ filter_list.uuid }}&action=disable"><i class="fas fa-toggle-on"></i></a>
|
|
|
|
{% else %}
|
|
|
|
<a class="text-gray" href="/dns/toggle_dns_list/?uuid={{ filter_list.uuid }}&action=enable"><i class="fas fa-toggle-off"></i></a>
|
|
|
|
{% endif %}
|
2025-03-01 19:10:15 -03:00
|
|
|
</td>
|
|
|
|
<td>
|
2025-03-01 21:42:03 -03:00
|
|
|
<a href="/dns/update_dns_list/?uuid={{ filter_list.uuid }}"><i class="fas fa-sync"></i></a>
|
2025-03-01 19:10:15 -03:00
|
|
|
</td>
|
|
|
|
<td class="min-width">
|
|
|
|
<a href="/dns/manage_filter_list/?uuid={{ filter_list.uuid }}"><i class="fas fa-edit"></i></a>
|
|
|
|
{% comment %}<a class="text-danger" href="/dns/manage_filter_list/?uuid={{ filter_list.uuid }}&action=delete" onclick="return confirm('Proceed removing the dns filter list: {{ filter_list.name }}?')"><i class="fas fa-trash-alt"></i></a>{% endcomment %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<tr>
|
|
|
|
<td colspan="7"></td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2024-04-26 15:29:07 -03:00
|
|
|
</div>
|
2025-03-01 19:10:15 -03:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
2025-04-15 10:22:10 -03:00
|
|
|
<a href="/dns/manage_filter_list/" class="btn btn-primary">{% trans 'Add Filter List' %}</a>
|
2025-03-01 19:10:15 -03:00
|
|
|
</div>
|
2024-04-26 15:29:07 -03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|