From 8bc32d035b7bc55f55e9375ef70b4ed98426f899 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 5 Mar 2024 09:23:47 -0300 Subject: [PATCH] Fix display of rule/protocol ;) --- templates/firewall/firewall_rule_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/firewall/firewall_rule_list.html b/templates/firewall/firewall_rule_list.html index 9ad9b7a..728af72 100644 --- a/templates/firewall/firewall_rule_list.html +++ b/templates/firewall/firewall_rule_list.html @@ -126,7 +126,7 @@ {% for peer in rule.destination_peer.all %}{% if rule.not_destination %}! {% endif %}{{ peer }}{% if rule.destination_peer_include_networks %} +{% endif %}
{% endfor %} - {% if rule.protocol %}{{ rule.get_protocol_display }}{% else %}all{% endif %} + {{ rule.get_protocol_display|default_if_none:'all' }} {{ rule.destination_port|default_if_none:'' }} {% if rule.state_new %}{% if rule.not_state %}! {% endif %}New
{% endif %}