2020-12-04 15:56:33 -05:00
|
|
|
{% load helpers %}
|
|
|
|
|
2020-11-12 16:55:02 -05:00
|
|
|
<div class="cable" style="border-left-color: #{{ cable.color|default:'606060' }}; {% if cable.status != 'connected' %} border-left-style: dashed{% endif %}">
|
|
|
|
<strong>
|
2020-10-07 16:39:15 -04:00
|
|
|
<a href="{% url 'dcim:cable' pk=cable.pk %}">
|
|
|
|
{% if cable.label %}<code>{{ cable.label }}</code>{% else %}Cable #{{ cable.pk }}{% endif %}
|
|
|
|
</a>
|
2020-11-12 16:55:02 -05:00
|
|
|
</strong><br />
|
|
|
|
{% if cable.type %}
|
2020-12-04 15:56:33 -05:00
|
|
|
{{ cable.get_type_display|default:"" }}<br />
|
2020-10-07 16:39:15 -04:00
|
|
|
{% endif %}
|
2020-12-04 15:56:33 -05:00
|
|
|
{% if cable.length %}
|
|
|
|
({{ cable.length }} {{ cable.get_length_unit_display }})<br />
|
|
|
|
{% endif %}
|
|
|
|
<span class="label label-{{ cable.get_status_class }}">{{ cable.get_status_display }}</span><br />
|
|
|
|
{% for tag in cable.tags.all %}
|
|
|
|
{% tag tag 'dcim:cable_list' %}
|
|
|
|
{% endfor %}
|
2020-10-07 16:39:15 -04:00
|
|
|
</div>
|