Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #11342 - Fix component traces all pointing to the interface trace URL #11347

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion netbox/templates/dcim/consoleport.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h5 class="card-header">Connection</h5>
{% if object.mark_connected %}
<span class="text-success"><i class="mdi mdi-check-bold"></i></span> Marked as connected
{% elif object.cable %}
{% include 'dcim/inc/connection_endpoints.html' %}
{% include 'dcim/inc/connection_endpoints.html' with trace_url='dcim:consoleport_trace' %}
{% else %}
<div class="text-muted">
Not Connected
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/dcim/consoleserverport.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h5 class="card-header">Connection</h5>
{% if object.mark_connected %}
<span class="text-success"><i class="mdi mdi-check-bold"></i></span> Marked as connected
{% elif object.cable %}
{% include 'dcim/inc/connection_endpoints.html' %}
{% include 'dcim/inc/connection_endpoints.html' with trace_url='dcim:consoleserverport_trace' %}
{% else %}
<div class="text-muted">
Not Connected
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/dcim/inc/connection_endpoints.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<th scope="row">Cable</th>
<td>
{{ object.cable|linkify }}
<a href="{% url 'dcim:interface_trace' pk=object.pk %}" class="btn btn-primary btn-sm lh-1" title="Trace">
<a href="{% url trace_url pk=object.pk %}" class="btn btn-primary btn-sm lh-1" title="Trace">
<i class="mdi mdi-transit-connection-variant" aria-hidden="true"></i>
</a>
</td>
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/dcim/interface.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h5 class="card-header">Connection</h5>
<span class="text-success"><i class="mdi mdi-check-bold"></i></span> Marked as Connected
</div>
{% elif object.cable %}
{% include 'dcim/inc/connection_endpoints.html' %}
{% include 'dcim/inc/connection_endpoints.html' with trace_url='dcim:interface_trace' %}
{% elif object.wireless_link %}
<table class="table table-hover">
<tr>
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/dcim/powerfeed.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h5 class="card-header">Connection</h5>
<span class="text-success"><i class="mdi mdi-check-bold"></i></span> Marked as connected
</div>
{% elif object.cable %}
{% include 'dcim/inc/connection_endpoints.html' %}
{% include 'dcim/inc/connection_endpoints.html' with trace_url='dcim:powerfeed_trace' %}
{% else %}
<div class="text-muted">
Not connected
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/dcim/poweroutlet.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h5 class="card-header">Connection</h5>
<span class="text-success"><i class="mdi mdi-check-bold"></i></span> Marked as Connected
</div>
{% elif object.cable %}
{% include 'dcim/inc/connection_endpoints.html' %}
{% include 'dcim/inc/connection_endpoints.html' with trace_url='dcim:poweroutlet_trace' %}
{% else %}
<div class="text-muted">
Not Connected
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/dcim/powerport.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h5 class="card-header">Connection</h5>
<span class="text-success"><i class="mdi mdi-check-bold"></i></span> Marked as Connected
</div>
{% elif object.cable %}
{% include 'dcim/inc/connection_endpoints.html' %}
{% include 'dcim/inc/connection_endpoints.html' with trace_url='dcim:powerport_trace' %}
{% else %}
<div class="text-muted">
Not Connected
Expand Down