{% extends "base.html" %} {% load i18n %} {% block content %}

{% trans 'Delete Speed Profile' %}

{% csrf_token %}
{% if peers or default_for_instances %}

{% blocktrans with name=profile.name %}The profile "{{ name }}" is in use.{% endblocktrans %}

{% if peers %}

{% trans 'Peers using this profile' %}

    {% for peer in peers %}
  • {{ peer }} (wg{{ peer.wireguard_instance.instance_id }})
  • {% endfor %}
{% endif %} {% if default_for_instances %}

{% trans 'Default profile of the instances' %}

    {% for instance in default_for_instances %}
  • wg{{ instance.instance_id }}{% if instance.name %} ({{ instance.name }}){% endif %}
  • {% endfor %}
{% endif %}
{% trans 'Unlinking removes the profile from these peers and instances. The peers will have no speed limit.' %}
{% else %}

{% blocktrans with name=profile.name %}Are you sure you want to delete the profile "{{ name }}"?{% endblocktrans %}

{% endif %}
{% endblock %}