mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	Closes #5411: Include cable tags in trace view
This commit is contained in:
		@@ -2,6 +2,10 @@
 | 
			
		||||
 | 
			
		||||
## v2.10-beta3 (FUTURE)
 | 
			
		||||
 | 
			
		||||
### Enhancements
 | 
			
		||||
 | 
			
		||||
* [#5411](https://github.com/netbox-community/netbox/issues/5411) - Include cable tags in trace view
 | 
			
		||||
 | 
			
		||||
### Bug Fixes
 | 
			
		||||
 | 
			
		||||
* [#5417](https://github.com/netbox-community/netbox/issues/5417) - Fix exception when viewing a device installed within a device bay
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,5 @@
 | 
			
		||||
{% load helpers %}
 | 
			
		||||
 | 
			
		||||
<div class="cable" style="border-left-color: #{{ cable.color|default:'606060' }}; {% if cable.status != 'connected' %} border-left-style: dashed{% endif %}">
 | 
			
		||||
    <strong>
 | 
			
		||||
        <a href="{% url 'dcim:cable' pk=cable.pk %}">
 | 
			
		||||
@@ -5,11 +7,13 @@
 | 
			
		||||
        </a>
 | 
			
		||||
    </strong><br />
 | 
			
		||||
    {% if cable.type %}
 | 
			
		||||
        {{ cable.get_type_display|default:"" }}
 | 
			
		||||
        {{ cable.get_type_display|default:"" }}<br />
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% if cable.length %}
 | 
			
		||||
            ({{ cable.length }} {{ cable.get_length_unit_display }})
 | 
			
		||||
        ({{ cable.length }} {{ cable.get_length_unit_display }})<br />
 | 
			
		||||
    {% endif %}
 | 
			
		||||
        <br />
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    <span class="label label-{{ cable.get_status_class }}">{{ cable.get_status_display }}</span>
 | 
			
		||||
    <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 %}
 | 
			
		||||
</div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user