mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-22 10:01:45 +00:00
Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
87 lines
2.6 KiB
HTML
87 lines
2.6 KiB
HTML
{% extends "app.html" %}
|
|
{% comment %}
|
|
#
|
|
# This file is part of FreedomBox.
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
# License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
{% endcomment %}
|
|
|
|
{% load bootstrap %}
|
|
{% load i18n %}
|
|
|
|
{% block configuration %}
|
|
<h3>{% trans "Server" %}</h3>
|
|
|
|
<p>{% trans "Peers allowed to connect to this server" %}</p>
|
|
<table class="table table-bordered table-condensed table-striped"
|
|
id="server-clients-list">
|
|
<tr>
|
|
<th>{% trans "Public Key" %}</th>
|
|
<th>{% trans "Last Connected Time" %}</th>
|
|
<th>{% trans "Delete" %}</th>
|
|
</tr>
|
|
{% if server_clients %}
|
|
{% for client in server_clients %}
|
|
<tr>
|
|
<td>
|
|
<a href="{% url 'wireguard:show-client' client.public_key %}">
|
|
{{ client.public_key }}
|
|
</a>
|
|
</td>
|
|
<td>{{ client.latest_handshake }}</td>
|
|
<td><a class="btn btn-sm btn-default"
|
|
href="{% url 'wireguard:delete-client' client.public_key %}">
|
|
<span class="fa fa-trash-o" aria-hidden="true">
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
<tr>
|
|
<td>
|
|
{% blocktrans trimmed %}
|
|
No peers configured to connect to this {{ box_name }} yet.
|
|
{% endblocktrans %}
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
</table>
|
|
|
|
<a title="{% trans 'Add a new peer' %}"
|
|
role="button" class="btn btn-default"
|
|
href="{% url 'wireguard:add-client' %}">
|
|
<span class="fa fa-plus" aria-hidden="true"></span>
|
|
{% trans "Add Client" %}
|
|
</a>
|
|
|
|
<h3>{% trans "Client" %}</h3>
|
|
<p>{% trans "Peer servers that FreedomBox will connect to" %}</p>
|
|
<ul>{% trans "endpoint" %}</ul>
|
|
<ul>{% trans "public key" %}</ul>
|
|
<ul>{% trans "last connected time" %}</ul>
|
|
<ul>{% trans "edit" %}</ul>
|
|
<p>{% trans "No connections to remove servers are configured yet." %}</p>
|
|
<a title="{% trans 'Add a new server' %}"
|
|
role="button" class="btn btn-default"
|
|
href="{% url 'wireguard:add-server' %}">
|
|
<span class="fa fa-plus" aria-hidden="true"></span>
|
|
{% trans "Add Server" %}
|
|
</a>
|
|
|
|
{{ block.super }}
|
|
|
|
{% endblock %}
|