mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #2807: Include device site/rack assignment in cable trace view
This commit is contained in:
@@ -29,8 +29,8 @@
|
||||
{% if cable.label %}<code>{{ cable.label }}</code>{% else %}Cable #{{ cable.pk }}{% endif %}
|
||||
</a>
|
||||
</h4>
|
||||
{{ cable.get_status_display }}<br />
|
||||
{{ cable.get_type_display|default:"" }}
|
||||
<p><span class="label label-{% if cable.status %}success{% else %}info{% endif %}">{{ cable.get_status_display }}</span></p>
|
||||
<p>{{ cable.get_type_display|default:"" }}</p>
|
||||
{% if cable.length %}- {{ cable.length }}{{ cable.get_length_unit_display }}{% endif %}
|
||||
<span class="label color-block center-block" style="background-color: #{{ cable.color }}"> </span>
|
||||
{% else %}
|
||||
|
@@ -3,7 +3,13 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading text-center">
|
||||
{% if end.device %}
|
||||
<strong><a href="{{ end.device.get_absolute_url }}">{{ end.device }}</a></strong>
|
||||
<strong><a href="{{ end.device.get_absolute_url }}">{{ end.device }}</a></strong><br/>
|
||||
<small>
|
||||
<a href="{{ end.device.site.get_absolute_url }}">{{ end.device.site }}</a>
|
||||
{% if end.device.rack %}
|
||||
/ <a href="{{ end.device.rack.get_absolute_url }}">{{ end.device.rack }}</a>
|
||||
{% endif %}
|
||||
</small>
|
||||
{% else %}
|
||||
<strong><a href="{{ end.circuit.provider.get_absolute_url }}">{{ end.circuit.provider }}</a></strong>
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user