Closes #2851: Include circuit provider in pass-through port connection details

This commit is contained in:
Jeremy Stretch 2019-02-13 10:26:54 -05:00
parent 3b4bcc881f
commit 57fecdbf17
2 changed files with 26 additions and 2 deletions

View File

@ -29,7 +29,19 @@
<a href="{{ frontport.cable.get_absolute_url }}">{{ frontport.cable }}</a>
</td>
{% with far_end=frontport.get_cable_peer %}
<td><a href="{{ far_end.parent.get_absolute_url }}">{{ far_end.parent }}</a></td>
<td>
{% if far_end.parent.provider %}
<i class="fa fa-fw fa-globe" title="Circuit"></i>
<a href="{{ far_end.parent.get_absolute_url }}">
{{ far_end.parent.provider }}
{{ far_end.parent }}
</a>
{% else %}
<a href="{{ far_end.parent.get_absolute_url }}">
{{ far_end.parent }}
</a>
{% endif %}
</td>
<td>{{ far_end }}</td>
{% endwith %}
{% else %}

View File

@ -28,7 +28,19 @@
<a href="{{ rearport.cable.get_absolute_url }}">{{ rearport.cable }}</a>
</td>
{% with far_end=rearport.get_cable_peer %}
<td><a href="{{ far_end.parent.get_absolute_url }}">{{ far_end.parent }}</a></td>
<td>
{% if far_end.parent.provider %}
<i class="fa fa-fw fa-globe" title="Circuit"></i>
<a href="{{ far_end.parent.get_absolute_url }}">
{{ far_end.parent.provider }}
{{ far_end.parent }}
</a>
{% else %}
<a href="{{ far_end.parent.get_absolute_url }}">
{{ far_end.parent }}
</a>
{% endif %}
</td>
<td>{{ far_end }}</td>
{% endwith %}
{% else %}