FreedomBox/plinth/templates/internal-zone.html
Sunil Mohan Adapa e7be53723f
firewall: Mention that internal services are available over VPN
When showing the internal zone warning.

Closes: #1312.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-05-29 21:27:00 -04:00

29 lines
1.0 KiB
HTML

{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load i18n %}
{% block internal_zone_warning %}
{% for component in firewall %}
{% if not component.is_external %}
<div class="bg-warning">
{% blocktrans trimmed with service_name=component.name %}
<em>{{ service_name }}</em> is available only on internal networks or when the client is connected to {{ box_name }} through VPN.
{% endblocktrans %}
<p>
{% with interfaces=component.get_internal_interfaces %}
{% if not interfaces %}
{% trans "Currently there are no network interfaces configured as internal." %}
{% else %}
{% blocktrans trimmed with interface_list=interfaces|join:", " %}
Currently the following network interfaces are configured as internal: {{ interface_list }}
{% endblocktrans %}
{% endif %}
{% endwith %}
</p>
</div>
{% endif %}
{% endfor %}
{% endblock %}