@@ -179,31 +179,31 @@ <h5 class="card-header">
179
179
< tr >
180
180
< th scope ="row "> Primary IPv4</ th >
181
181
< td >
182
- {% if object.primary_ip4 %}
183
- < a href ="{% url 'ipam:ipaddress' pk=object.primary_ip4.pk %} "> {{ object.primary_ip4.address.ip }}</ a >
184
- {% if object.primary_ip4.nat_inside %}
185
- < span > (NAT for {{ object.primary_ip4.nat_inside.address.ip }})</ span >
186
- {% elif object.primary_ip4.nat_outside %}
187
- < span > (NAT: {{ object.primary_ip4.nat_outside.address.ip }})</ span >
188
- {% endif %}
189
- {% else %}
190
- < span class ="text-muted "> —</ span >
182
+ {% if object.primary_ip4 %}
183
+ < a href ="{% url 'ipam:ipaddress' pk=object.primary_ip4.pk %} "> {{ object.primary_ip4.address.ip }}</ a >
184
+ {% if object.primary_ip4.nat_inside %}
185
+ (NAT for < a href ="{{ object.primary_ip4.nat_inside.get_absolute_url }}) "> {{ object.primary_ip4.nat_inside.address.ip }}</ a > )
186
+ {% elif object.primary_ip4.nat_outside %}
187
+ (NAT: < a href ="{{ object.primary_ip4.nat_outside.get_absolute_url }} "> {{ object.primary_ip4.nat_outside.address.ip }}</ a > )
191
188
{% endif %}
189
+ {% else %}
190
+ < span class ="text-muted "> —</ span >
191
+ {% endif %}
192
192
</ td >
193
193
</ tr >
194
194
< tr >
195
195
< th scope ="row "> Primary IPv6</ th >
196
196
< td >
197
- {% if object.primary_ip6 %}
198
- < a href ="{% url 'ipam:ipaddress' pk=object.primary_ip6.pk %} "> {{ object.primary_ip6.address.ip }}</ a >
199
- {% if object.primary_ip6.nat_inside %}
200
- < span > (NAT for {{ object.primary_ip6.nat_inside.address.ip }})</ span >
201
- {% elif object.primary_ip6.nat_outside %}
202
- < span > (NAT: {{ object.primary_ip6.nat_outside.address.ip }})</ span >
203
- {% endif %}
204
- {% else %}
205
- < span class ="text-muted "> —</ span >
197
+ {% if object.primary_ip6 %}
198
+ < a href ="{% url 'ipam:ipaddress' pk=object.primary_ip6.pk %} "> {{ object.primary_ip6.address.ip }}</ a >
199
+ {% if object.primary_ip6.nat_inside %}
200
+ (NAT for < a href ="{{ object.primary_ip6.nat_inside.get_absolute_url }} "> {{ object.primary_ip6.nat_inside.address.ip }}</ a > )
201
+ {% elif object.primary_ip6.nat_outside %}
202
+ (NAT: < a href ="{{ object.primary_ip6.nat_outside.get_absolute_url }} "> {{ object.primary_ip6.nat_outside.address.ip }}</ a > )
206
203
{% endif %}
204
+ {% else %}
205
+ < span class ="text-muted "> —</ span >
206
+ {% endif %}
207
207
</ td >
208
208
</ tr >
209
209
{% if object.cluster %}
0 commit comments