FreedomBox/plinth/templates/internal-zone.html
Sunil Mohan Adapa 3e6c8e9b06
ui: Use inline SVG icons for internal zone message
Tests:

- In Privoxy app with only internal interface defined, the icon appears as
before in message in light/dark themes.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2026-03-19 19:12:53 -04:00

43 lines
1.4 KiB
HTML

{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load i18n %}
{% load plinth_extras %}
{% block internal_zone_warning %}
{% for component in firewall %}
{% if not component.is_external %}
<div class="alert alert-info d-flex align-items-center" role="alert">
<div class="me-2">
{% icon 'info-circle' %}
<span class="visually-hidden">{% trans "Info:" %}</span>
</div>
<div>
<div>
{% 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 %}
</div>
<div>
{% with interfaces=component.get_internal_interfaces %}
{% if not interfaces %}
{% blocktrans trimmed %}
Currently there are no network interfaces configured as
internal.
{% endblocktrans %}
{% else %}
{% blocktrans trimmed with interface_list=interfaces|join:", " %}
Currently the following network interfaces are configured as
internal: {{ interface_list }}
{% endblocktrans %}
{% endif %}
{% endwith %}
</div>
</div>
</div>
{% endif %}
{% endfor %}
{% endblock %}