Fixes #3176: Add cable trace button for console server ports and power outlets

This commit is contained in:
Jeremy Stretch 2019-06-20 13:58:32 -04:00
parent 6778d1398f
commit 7cb618df5e
4 changed files with 10 additions and 3 deletions

View File

@ -181,6 +181,7 @@ scheme. This change was introuced in django-cors-headers 3.0.
## Bug Fixes ## Bug Fixes
* [#2968](https://github.com/digitalocean/netbox/issues/2968) - Correct API documentation for SerializerMethodFields * [#2968](https://github.com/digitalocean/netbox/issues/2968) - Correct API documentation for SerializerMethodFields
* [#3176](https://github.com/digitalocean/netbox/issues/3176) - Add cable trace button for console server ports and power outlets
* [#3231](https://github.com/digitalocean/netbox/issues/3231) - Fixed cosmetic error indicating a missing schema migration * [#3231](https://github.com/digitalocean/netbox/issues/3231) - Fixed cosmetic error indicating a missing schema migration
* [#3239](https://github.com/digitalocean/netbox/issues/3239) - Corrected count of tags reported via API * [#3239](https://github.com/digitalocean/netbox/issues/3239) - Corrected count of tags reported via API

View File

@ -20,9 +20,12 @@
</td> </td>
{# Cable #} {# Cable #}
<td> <td class="text-nowrap">
{% if csp.cable %} {% if csp.cable %}
<a href="{{ csp.cable.get_absolute_url }}">{{ csp.cable }}</a> <a href="{{ csp.cable.get_absolute_url }}">{{ csp.cable }}</a>
<a href="{% url 'dcim:consoleserverport_trace' pk=csp.pk %}" class="btn btn-primary btn-xs" title="Trace">
<i class="fa fa-share-alt" aria-hidden="true"></i>
</a>
{% else %} {% else %}
<span class="text-muted">&mdash;</span> <span class="text-muted">&mdash;</span>
{% endif %} {% endif %}

View File

@ -52,7 +52,7 @@
<i class="fa fa-share-alt" aria-hidden="true"></i> <i class="fa fa-share-alt" aria-hidden="true"></i>
</a> </a>
{% else %} {% else %}
&mdash; <span class="text-muted">&mdash;</span>
{% endif %} {% endif %}
</td> </td>

View File

@ -31,9 +31,12 @@
</td> </td>
{# Cable #} {# Cable #}
<td> <td class="text-nowrap">
{% if po.cable %} {% if po.cable %}
<a href="{{ po.cable.get_absolute_url }}">{{ po.cable }}</a> <a href="{{ po.cable.get_absolute_url }}">{{ po.cable }}</a>
<a href="{% url 'dcim:poweroutlet_trace' pk=po.pk %}" class="btn btn-primary btn-xs" title="Trace">
<i class="fa fa-share-alt" aria-hidden="true"></i>
</a>
{% else %} {% else %}
<span class="text-muted">&mdash;</span> <span class="text-muted">&mdash;</span>
{% endif %} {% endif %}