Skip to content

Commit

Permalink
Fixes #472: Hide the connection button for interfaces which have a ci…
Browse files Browse the repository at this point in the history
…rcuit terminated to them
  • Loading branch information
jeremystretch committed Aug 16, 2016
1 parent d045429 commit 989ec72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions netbox/templates/dcim/inc/_interface.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
<a href="{% url 'dcim:interfaceconnection_delete' pk=iface.connection.pk %}?device={{ device.pk }}" class="btn btn-danger btn-xs" title="Delete connection">
<i class="glyphicon glyphicon-remove" aria-hidden="true"></i>
</a>
{% elif iface.circuit and perms.circuits.change_circuit %}
<a href="{% url 'circuits:circuit_edit' pk=iface.circuit.pk %}" class="btn btn-danger btn-xs" title="Edit circuit">
<i class="glyphicon glyphicon-remove" aria-hidden="true"></i>
</a>
{% else %}
<a href="{% url 'dcim:interfaceconnection_add' pk=device.pk %}?interface={{ iface.pk }}" class="btn btn-success btn-xs" title="Connect">
<i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
Expand Down

0 comments on commit 989ec72

Please sign in to comment.