2018-11-14 12:17:18 -05:00
|
|
|
{% load helpers %}
|
2023-07-29 03:30:25 +07:00
|
|
|
{% load i18n %}
|
2022-07-25 11:34:16 -04:00
|
|
|
{% if terminations.0 %}
|
2024-01-17 16:25:42 -05:00
|
|
|
<table class="table table-hover attr-table">
|
2022-07-25 11:34:16 -04:00
|
|
|
{% if terminations.0.device %}
|
|
|
|
|
{# Device component #}
|
|
|
|
|
<tr>
|
2024-01-17 16:25:42 -05:00
|
|
|
<th scope="row">{% trans "Site" %}</th>
|
2022-07-25 11:34:16 -04:00
|
|
|
<td>{{ terminations.0.device.site|linkify }}</td>
|
|
|
|
|
</tr>
|
2022-11-15 08:10:13 -08:00
|
|
|
<tr>
|
2024-01-17 16:25:42 -05:00
|
|
|
<th scope="row">{% trans "Location" %}</th>
|
2022-11-15 08:10:13 -08:00
|
|
|
<td>{{ terminations.0.device.location|linkify|placeholder }}</td>
|
|
|
|
|
</tr>
|
2022-07-25 11:34:16 -04:00
|
|
|
<tr>
|
2024-01-17 16:25:42 -05:00
|
|
|
<th scope="row">{% trans "Rack" %}</th>
|
2022-07-25 11:34:16 -04:00
|
|
|
<td>{{ terminations.0.device.rack|linkify|placeholder }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2024-01-17 16:25:42 -05:00
|
|
|
<th scope="row">{{ terminations.0|meta:"verbose_name"|capfirst }}</th>
|
2022-07-25 11:34:16 -04:00
|
|
|
<td>
|
|
|
|
|
{% for term in terminations %}
|
2023-06-29 21:48:00 +02:00
|
|
|
{{term.device|linkify}}
|
|
|
|
|
<i class="mdi mdi-chevron-right" aria-hidden="true"></i>
|
|
|
|
|
{{ term|linkify }}
|
|
|
|
|
{% if not forloop.last %}<br/>{% endif %}
|
2022-07-25 11:34:16 -04:00
|
|
|
{% endfor %}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% elif terminations.0.power_panel %}
|
|
|
|
|
{# Power feed #}
|
|
|
|
|
<tr>
|
2024-01-17 16:25:42 -05:00
|
|
|
<th scope="row">{% trans "Site" %}</th>
|
2022-07-25 11:34:16 -04:00
|
|
|
<td>{{ terminations.0.power_panel.site|linkify }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2024-01-17 16:25:42 -05:00
|
|
|
<th scope="row">{% trans "Power Panel" %}</th>
|
2022-07-25 11:34:16 -04:00
|
|
|
<td>{{ terminations.0.power_panel|linkify }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2024-01-17 16:25:42 -05:00
|
|
|
<th scope="row">{{ terminations.0|meta:"verbose_name"|capfirst }}</th>
|
2022-07-25 11:34:16 -04:00
|
|
|
<td>
|
|
|
|
|
{% for term in terminations %}
|
|
|
|
|
{{ term|linkify }}{% if not forloop.last %},{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% elif terminations.0.circuit %}
|
|
|
|
|
{# Circuit termination #}
|
|
|
|
|
<tr>
|
2024-01-17 16:25:42 -05:00
|
|
|
<th scope="row">{% trans "Provider" %}</th>
|
2022-07-25 11:34:16 -04:00
|
|
|
<td>{{ terminations.0.circuit.provider|linkify }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2024-01-17 16:25:42 -05:00
|
|
|
<th scope="row">{% trans "Circuit" %}</th>
|
2022-07-25 11:34:16 -04:00
|
|
|
<td>
|
|
|
|
|
{% for term in terminations %}
|
|
|
|
|
{{ term.circuit|linkify }} ({{ term }}){% if not forloop.last %},{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</table>
|
|
|
|
|
{% else %}
|
2023-07-29 03:30:25 +07:00
|
|
|
<span class="text-muted">{% trans "No termination" %}</span>
|
2022-07-25 11:34:16 -04:00
|
|
|
{% endif %}
|