2023-07-29 03:30:25 +07:00
|
|
|
{% load i18n %}
|
2022-10-03 16:11:24 -04:00
|
|
|
<table class="table table-hover">
|
|
|
|
<tr>
|
2023-07-29 03:30:25 +07:00
|
|
|
<th scope="row">{% trans "Cable" %}</th>
|
2022-10-03 16:11:24 -04:00
|
|
|
<td>
|
|
|
|
{{ object.cable|linkify }}
|
2023-07-29 03:30:25 +07:00
|
|
|
<a href="{% url trace_url pk=object.pk %}" class="btn btn-primary btn-sm lh-1" title="{% trans "Trace" %}">
|
2022-10-03 16:11:24 -04:00
|
|
|
<i class="mdi mdi-transit-connection-variant" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-07-29 03:30:25 +07:00
|
|
|
<th scope="row">{% trans "Path Status" %}</th>
|
2022-10-03 16:11:24 -04:00
|
|
|
<td>
|
|
|
|
{% if object.path.is_complete and object.path.is_active %}
|
2023-07-29 03:30:25 +07:00
|
|
|
<span class="badge bg-success">{% trans "Reachable" %}</span>
|
2022-10-03 16:11:24 -04:00
|
|
|
{% else %}
|
2023-07-29 03:30:25 +07:00
|
|
|
<span class="badge bg-danger">{% trans "Not Reachable" %}</span>
|
2022-10-03 16:11:24 -04:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-07-29 03:30:25 +07:00
|
|
|
<th scope="row">{% trans "Path Endpoints" %}</th>
|
2022-10-03 16:11:24 -04:00
|
|
|
<td>
|
|
|
|
{% for endpoint in object.connected_endpoints %}
|
|
|
|
{% if endpoint.parent_object %}
|
|
|
|
{{ endpoint.parent_object|linkify }}
|
|
|
|
<i class="mdi mdi-chevron-right"></i>
|
|
|
|
{% endif %}
|
|
|
|
{{ endpoint|linkify }}
|
|
|
|
{% if not forloop.last %}<br />{% endif %}
|
|
|
|
{% empty %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|