Просмотр исходного кода

netbox-community#10055: Added empty text

atownson 3 лет назад
Родитель
Сommit
43ad8e80b9
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      netbox/ipam/tables/ip.py

+ 2 - 0
netbox/ipam/tables/ip.py

@@ -59,6 +59,8 @@ VRF_LINK = """
 NAT_OUTSIDE_LINK = """
 {% if record.nat_outside.count > 0 %}
     {% for nat in record.nat_outside.all %}<a href="{{ nat.get_absolute_url }}">{{ nat.address.ip }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
+{% else %}
+    &mdash;
 {% endif %}
 """