mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	Closes #2851: Include circuit provider in pass-through port connection details
This commit is contained in:
		@@ -29,7 +29,19 @@
 | 
			
		||||
            <a href="{{ frontport.cable.get_absolute_url }}">{{ frontport.cable }}</a>
 | 
			
		||||
        </td>
 | 
			
		||||
        {% with far_end=frontport.get_cable_peer %}
 | 
			
		||||
            <td><a href="{{ far_end.parent.get_absolute_url }}">{{ far_end.parent }}</a></td>
 | 
			
		||||
            <td>
 | 
			
		||||
                {% if far_end.parent.provider %}
 | 
			
		||||
                    <i class="fa fa-fw fa-globe" title="Circuit"></i>
 | 
			
		||||
                    <a href="{{ far_end.parent.get_absolute_url }}">
 | 
			
		||||
                        {{ far_end.parent.provider }}
 | 
			
		||||
                        {{ far_end.parent }}
 | 
			
		||||
                    </a>
 | 
			
		||||
                {% else %}
 | 
			
		||||
                    <a href="{{ far_end.parent.get_absolute_url }}">
 | 
			
		||||
                        {{ far_end.parent }}
 | 
			
		||||
                    </a>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
            </td>
 | 
			
		||||
            <td>{{ far_end }}</td>
 | 
			
		||||
        {% endwith %}
 | 
			
		||||
    {% else %}
 | 
			
		||||
 
 | 
			
		||||
@@ -28,7 +28,19 @@
 | 
			
		||||
            <a href="{{ rearport.cable.get_absolute_url }}">{{ rearport.cable }}</a>
 | 
			
		||||
        </td>
 | 
			
		||||
        {% with far_end=rearport.get_cable_peer %}
 | 
			
		||||
            <td><a href="{{ far_end.parent.get_absolute_url }}">{{ far_end.parent }}</a></td>
 | 
			
		||||
            <td>
 | 
			
		||||
                {% if far_end.parent.provider %}
 | 
			
		||||
                    <i class="fa fa-fw fa-globe" title="Circuit"></i>
 | 
			
		||||
                    <a href="{{ far_end.parent.get_absolute_url }}">
 | 
			
		||||
                        {{ far_end.parent.provider }}
 | 
			
		||||
                        {{ far_end.parent }}
 | 
			
		||||
                    </a>
 | 
			
		||||
                {% else %}
 | 
			
		||||
                    <a href="{{ far_end.parent.get_absolute_url }}">
 | 
			
		||||
                        {{ far_end.parent }}
 | 
			
		||||
                    </a>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
            </td>
 | 
			
		||||
            <td>{{ far_end }}</td>
 | 
			
		||||
        {% endwith %}
 | 
			
		||||
    {% else %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user