|
|
@@ -46,13 +46,7 @@
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th scope="row">Rack</th>
|
|
|
- <td>
|
|
|
- {% if object.rack %}
|
|
|
- <a href="{% url 'dcim:rack' pk=object.rack.pk %}">{{ object.rack }}</a>
|
|
|
- {% else %}
|
|
|
- {{ ''|placeholder }}
|
|
|
- {% endif %}
|
|
|
- </td>
|
|
|
+ <td>{{ object.rack|linkify|placeholder }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th scope="row">Position</th>
|
|
|
@@ -161,9 +155,7 @@
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th scope="row">Role</th>
|
|
|
- <td>
|
|
|
- <a href="{% url 'dcim:device_list' %}?role={{ object.device_role.slug }}">{{ object.device_role }}</a>
|
|
|
- </td>
|
|
|
+ <td>{{ object.device_role|linkify }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th scope="row">Platform</th>
|
|
|
@@ -173,7 +165,7 @@
|
|
|
<th scope="row">Primary IPv4</th>
|
|
|
<td>
|
|
|
{% if object.primary_ip4 %}
|
|
|
- <a href="{% url 'ipam:ipaddress' pk=object.primary_ip4.pk %}">{{ object.primary_ip4.address.ip }}</a>
|
|
|
+ <a href="{{ object.primary_ip4.get_absolute_url }}">{{ object.primary_ip4.address.ip }}</a>
|
|
|
{% if object.primary_ip4.nat_inside %}
|
|
|
(NAT for {{ object.primary_ip4.nat_inside.address.ip|linkify }})
|
|
|
{% elif object.primary_ip4.nat_outside %}
|
|
|
@@ -188,7 +180,7 @@
|
|
|
<th scope="row">Primary IPv6</th>
|
|
|
<td>
|
|
|
{% if object.primary_ip6 %}
|
|
|
- <a href="{% url 'ipam:ipaddress' pk=object.primary_ip6.pk %}">{{ object.primary_ip6.address.ip }}</a>
|
|
|
+ <a href="{{ object.primary_ip6.get_absolute_url }}">{{ object.primary_ip6.address.ip }}</a>
|
|
|
{% if object.primary_ip6.nat_inside %}
|
|
|
(NAT for {{ object.primary_ip6.nat_inside.address.ip|linkify }})
|
|
|
{% elif object.primary_ip6.nat_outside %}
|