Explorar o código

netbox-community#10055 - Align NAT Outside with NAT Inside

atownson %!s(int64=3) %!d(string=hai) anos
pai
achega
0bdee1d6d8
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      netbox/templates/ipam/ipaddress.html

+ 5 - 2
netbox/templates/ipam/ipaddress.html

@@ -91,10 +91,13 @@
                       </td>
                   </tr>
                   <tr>
-                      <th scope="row">Outside NAT IPs</th>
+                      <th scope="row">NAT (Outside)</th>
                       <td>
                         {% for ip in object.nat_outside.all %}
-                          {{ ip|linkify }}<br/>
+                          {{ ip|linkify }}
+                            {% if ip.assigned_object %}
+                              ({{ ip.assigned_object.parent_object|linkify }})
+                            {% endif %}<br/>
                         {% empty %}
                           {{ ''|placeholder }}
                         {% endfor %}