Tweak component templates

This commit is contained in:
Jeremy Stretch 2020-10-06 10:37:59 -04:00
parent 9ce752f8d1
commit 57bd4be9c0
3 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>