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

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

atownson 3 лет назад
Родитель
Сommit
0bdee1d6d8
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      netbox/templates/ipam/ipaddress.html

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

@@ -91,10 +91,13 @@
                       </td>
                       </td>
                   </tr>
                   </tr>
                   <tr>
                   <tr>
-                      <th scope="row">Outside NAT IPs</th>
+                      <th scope="row">NAT (Outside)</th>
                       <td>
                       <td>
                         {% for ip in object.nat_outside.all %}
                         {% 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 %}
                         {% empty %}
                           {{ ''|placeholder }}
                           {{ ''|placeholder }}
                         {% endfor %}
                         {% endfor %}