Explorar o código

Tweak component templates

Jeremy Stretch %!s(int64=5) %!d(string=hai) anos
pai
achega
ffdf5514ae

+ 1 - 1
netbox/templates/dcim/inc/endpoint_connection.html

@@ -1,4 +1,4 @@
-{% if path %}
+{% if path.destination_id %}
     {% with endpoint=path.destination %}
     {% with endpoint=path.destination %}
         <td><a href="{{ endpoint.parent.get_absolute_url }}">{{ endpoint.parent }}</a></td>
         <td><a href="{{ endpoint.parent.get_absolute_url }}">{{ endpoint.parent }}</a></td>
         <td><a href="{{ endpoint.get_absolute_url }}">{{ endpoint }}</a></td>
         <td><a href="{{ endpoint.get_absolute_url }}">{{ endpoint }}</a></td>

+ 1 - 1
netbox/templates/dcim/inc/frontport.html

@@ -24,7 +24,7 @@
     {# Description #}
     {# Description #}
     <td>{{ frontport.description|placeholder }}</td>
     <td>{{ frontport.description|placeholder }}</td>
 
 
-    {# Cable/connection #}
+    {# Cable #}
     {% if frontport.cable %}
     {% if frontport.cable %}
         <td>
         <td>
             <a href="{{ frontport.cable.get_absolute_url }}">{{ frontport.cable }}</a>
             <a href="{{ frontport.cable.get_absolute_url }}">{{ frontport.cable }}</a>

+ 1 - 1
netbox/templates/dcim/inc/rearport.html

@@ -23,7 +23,7 @@
     {# Description #}
     {# Description #}
     <td>{{ rearport.description|placeholder }}</td>
     <td>{{ rearport.description|placeholder }}</td>
 
 
-    {# Cable/connection #}
+    {# Cable #}
     {% if rearport.cable %}
     {% if rearport.cable %}
         <td>
         <td>
             <a href="{{ rearport.cable.get_absolute_url }}">{{ rearport.cable }}</a>
             <a href="{{ rearport.cable.get_absolute_url }}">{{ rearport.cable }}</a>