{% extends "base.html" %} {% block content %} {% if wireguard_instances %}
{% for peer in peer_list %}
{% if peer.name %} {{ peer.name}} {% else %} {{ peer.public_key|slice:":16" }}{% if peer.public_key|length > 16 %}...{% endif %} {% endif %}
{% comment %}This needs to be improved{% endcomment %}

Transfer:
Latest Handshake:
Endpoints:
Allowed IPs: {% for address in peer.peerallowedip_set.all %}{% if address.priority == 0 %} {% if address.missing_from_wireguard %} {{ address }} {% else %} {{ address }} {% endif %} {% endif %}{% endfor %} {% for address in peer.peerallowedip_set.all %}{% if address.priority >= 1 %} {% if address.missing_from_wireguard %} {{ address }} {% else %} {{ address }} {% endif %} {% endif %}{% endfor %}

{% comment %}

{% for address in peer.peerallowedip_set.all %}{% if address.priority == 0 %} {% if address.missing_from_wireguard %} {{ address }} {% else %} {{ address }} {% endif %} {% endif %}{% endfor %} {% for address in peer.peerallowedip_set.all %}{% if address.priority >= 1 %} {% if address.missing_from_wireguard %} {{ address }} {% else %} {{ address }} {% endif %} {% endif %}{% endfor %}

{% endcomment %}
{% endfor %}
Create Peer Import peers
{% else %}

Add WireGuard Instance

{% endif %} {% endblock %} {% block custom_page_scripts %} {% endblock %}