mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
- Don't create network link. This don't persist across reboots and it is the job of Network Manager. - Move NM settings code to regular plinth process instead of superuser. Permission for managing NM connections from the service daemon is granted by PolKit. - Use interface name to identify the connection as it seems to be simply to do so than the public key. Public key is not easy to retrieve from NM connection. - Merge code for adding and editing the connection to avoid repetition. - Add icon to the edit button. - Throw 404 error when incorrect client is specified. - Fix issue with storing preshared key. - Show formatting date in case of last connected time. - Show formatted sizes for data transmitted. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
70 lines
2.1 KiB
HTML
70 lines
2.1 KiB
HTML
{% extends "base.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 i18n %}
|
|
|
|
{% block content %}
|
|
|
|
<h3>{{ title }}</h3>
|
|
|
|
<table class="table table-bordered table-condensed table-striped">
|
|
<tbody>
|
|
<tr>
|
|
<th>{% trans "Endpoint:" %}</th>
|
|
<td>{{ server.peers.0.endpoint }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{% trans "Public Key:" %}</th>
|
|
<td>{{ server.peers.0.public_key }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{% trans "Pre-shared key:" %}</th>
|
|
<td>{{ server.peers.0.preshared_key }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{% trans "Data transmitted:" %}</th>
|
|
<td>{{ server.peers.0.status.transfer_tx|filesizeformat }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{% trans "Data received:" %}</th>
|
|
<td>{{ server.peers.0.status.transfer_rx|filesizeformat }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{% trans "Latest handshake:" %}</th>
|
|
<td>{{ server.peers.0.status.latest_handshake }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<p>
|
|
<a class="btn btn-default"
|
|
href="{% url 'wireguard:edit-server' interface %}">
|
|
<span class="fa fa-pencil-square-o" aria-hidden="true"></span>
|
|
{% trans "Edit Server" %}
|
|
</a>
|
|
<a class="btn btn-default"
|
|
href="{% url 'wireguard:delete-server' interface %}">
|
|
<span class="fa fa-trash-o" aria-hidden="true"></span>
|
|
{% trans "Delete Server" %}
|
|
</a>
|
|
</p>
|
|
|
|
{% endblock %}
|