Add custom links to interface model

This commit is contained in:
Alexander GITTINGS 2020-03-13 09:03:13 +00:00
parent 1487b5004d
commit 5fb2a597df
3 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@
### Enhancements
* [#4309](https://github.com/netbox-community/netbox/issues/4309) - Add descriptive tooltip to custom fields on object views
* [#4352](https://github.com/netbox-community/netbox/issues/4352) - Add custom links to interface model
### Bug Fixes

View File

@ -48,6 +48,7 @@ CUSTOMLINK_MODELS = Q(
'powerfeed',
'rack',
'site',
'interface',
]) |
Q(app_label='ipam', model__in=[
'aggregate',

View File

@ -1,4 +1,5 @@
{% extends '_base.html' %}
{% load custom_links %}
{% load helpers %}
{% block header %}
@ -28,6 +29,9 @@
{% endif %}
</div>
<h1>{% block title %}{{ interface.parent }} / {{ interface.name }}{% endblock %}</h1>
<div class="pull-right noprint">
{% custom_links interface %}
</div>
<ul class="nav nav-tabs">
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
<a href="{{ interface.get_absolute_url }}">Interface</a>