mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
Closes #2807: Include device site/rack assignment in cable trace view
This commit is contained in:
parent
22eebbbc71
commit
d53249060d
@ -9,6 +9,7 @@ v2.5.4 (FUTURE)
|
|||||||
* [#2753](https://github.com/digitalocean/netbox/issues/2753) - Implemented Select2 to replace most all instances of select fields in forms
|
* [#2753](https://github.com/digitalocean/netbox/issues/2753) - Implemented Select2 to replace most all instances of select fields in forms
|
||||||
* [#2766](https://github.com/digitalocean/netbox/issues/2766) - Extend users admin table to include superuser and active fields
|
* [#2766](https://github.com/digitalocean/netbox/issues/2766) - Extend users admin table to include superuser and active fields
|
||||||
* [#2782](https://github.com/digitalocean/netbox/issues/2782) - Add `is_pool` field for prefix filtering
|
* [#2782](https://github.com/digitalocean/netbox/issues/2782) - Add `is_pool` field for prefix filtering
|
||||||
|
* [#2807](https://github.com/digitalocean/netbox/issues/2807) - Include device site/rack assignment in cable trace view
|
||||||
|
|
||||||
## Bug Fixes
|
## Bug Fixes
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@
|
|||||||
{% if cable.label %}<code>{{ cable.label }}</code>{% else %}Cable #{{ cable.pk }}{% endif %}
|
{% if cable.label %}<code>{{ cable.label }}</code>{% else %}Cable #{{ cable.pk }}{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
{{ cable.get_status_display }}<br />
|
<p><span class="label label-{% if cable.status %}success{% else %}info{% endif %}">{{ cable.get_status_display }}</span></p>
|
||||||
{{ cable.get_type_display|default:"" }}
|
<p>{{ cable.get_type_display|default:"" }}</p>
|
||||||
{% if cable.length %}- {{ cable.length }}{{ cable.get_length_unit_display }}{% endif %}
|
{% if cable.length %}- {{ cable.length }}{{ cable.get_length_unit_display }}{% endif %}
|
||||||
<span class="label color-block center-block" style="background-color: #{{ cable.color }}"> </span>
|
<span class="label color-block center-block" style="background-color: #{{ cable.color }}"> </span>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading text-center">
|
<div class="panel-heading text-center">
|
||||||
{% if end.device %}
|
{% 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 %}
|
{% else %}
|
||||||
<strong><a href="{{ end.circuit.provider.get_absolute_url }}">{{ end.circuit.provider }}</a></strong>
|
<strong><a href="{{ end.circuit.provider.get_absolute_url }}">{{ end.circuit.provider }}</a></strong>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user