mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
firewalld: Reduce severity for alert about service on internal zone
- When apps are available only on 'internal' zone, a warning message is shown on the app's page. This is a routine warning that requires no action from the user. It is quite annoying to see it on a page like Samba where it is even implied. Hence reduce the severity of the alert to 'info' from 'warning'. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
b465c33e1b
commit
e302fdabaf
@ -7,17 +7,22 @@
|
|||||||
{% block internal_zone_warning %}
|
{% block internal_zone_warning %}
|
||||||
{% for component in firewall %}
|
{% for component in firewall %}
|
||||||
{% if not component.is_external %}
|
{% if not component.is_external %}
|
||||||
<div class="alert alert-warning" role="alert">
|
<div class="alert alert-info" role="alert">
|
||||||
{% blocktrans trimmed with service_name=component.name %}
|
{% 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.
|
<em>{{ service_name }}</em> is available only on internal networks or
|
||||||
|
when the client is connected to {{ box_name }} through VPN.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
<p>
|
<p>
|
||||||
{% with interfaces=component.get_internal_interfaces %}
|
{% with interfaces=component.get_internal_interfaces %}
|
||||||
{% if not interfaces %}
|
{% if not interfaces %}
|
||||||
{% trans "Currently there are no network interfaces configured as internal." %}
|
{% blocktrans trimmed %}
|
||||||
|
Currently there are no network interfaces configured as
|
||||||
|
internal.
|
||||||
|
{% endblocktrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% blocktrans trimmed with interface_list=interfaces|join:", " %}
|
{% blocktrans trimmed with interface_list=interfaces|join:", " %}
|
||||||
Currently the following network interfaces are configured as internal: {{ interface_list }}
|
Currently the following network interfaces are configured as
|
||||||
|
internal: {{ interface_list }}
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user