1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

37 lines
1.0 KiB
HTML
Raw Normal View History

2018-11-14 12:17:18 -05:00
{% load helpers %}
2018-10-25 15:51:12 -04:00
<table class="table table-hover panel-body attr-table">
{% if termination.device %}
{# Device component #}
<tr>
<td>Device</td>
<td>
<a href="{{ termination.device.get_absolute_url }}">{{ termination.device }}</a>
</td>
</tr>
2018-11-14 12:17:18 -05:00
<tr>
<td>Type</td>
<td>
{{ termination|model_name|capfirst }}
</td>
</tr>
<tr>
<td>Component</td>
<td>{{ termination }}</td>
</tr>
{% else %}
{# Circuit termination #}
<tr>
<td>Provider</td>
<td>
<a href="{{ termination.circuit.provider.get_absolute_url }}">{{ termination.circuit.provider }}</a>
</td>
</tr>
<tr>
<td>Circuit</td>
<td>
<a href="{{ termination.circuit.get_absolute_url }}">{{ termination.circuit }}</a> ({{ termination }})
</td>
</tr>
{% endif %}
2018-10-25 15:51:12 -04:00
</table>