mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	Fix parent device position display
This commit is contained in:
		@@ -43,8 +43,10 @@
 | 
			
		||||
                    <td>
 | 
			
		||||
                        {% if device.parent_bay %}
 | 
			
		||||
                            {% with device.parent_bay.device as parent %}
 | 
			
		||||
                                <span>U{{ parent.position }} / {{ parent.get_face_display }}
 | 
			
		||||
                                (<a href="{{ parent.get_absolute_url }}">{{ parent }}</a> - {{ device.parent_bay.name }})</span>
 | 
			
		||||
                                <a href="{{ parent.get_absolute_url }}">{{ parent }}</a> <i class="fa fa-angle-right"></i> {{ device.parent_bay.name }}
 | 
			
		||||
                                {% if parent.position %}
 | 
			
		||||
                                    (U{{ parent.position }} / {{ parent.get_face_display }})
 | 
			
		||||
                                {% endif %}
 | 
			
		||||
                            {% endwith %}
 | 
			
		||||
                        {% elif device.rack and device.position %}
 | 
			
		||||
                            <span>U{{ device.position }} / {{ device.get_face_display }}</span>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user