mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 00:28:16 -06:00
Add custom links to interface model
This commit is contained in:
parent
1487b5004d
commit
5fb2a597df
@ -5,6 +5,7 @@
|
|||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
||||||
* [#4309](https://github.com/netbox-community/netbox/issues/4309) - Add descriptive tooltip to custom fields on object views
|
* [#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
|
### Bug Fixes
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@ CUSTOMLINK_MODELS = Q(
|
|||||||
'powerfeed',
|
'powerfeed',
|
||||||
'rack',
|
'rack',
|
||||||
'site',
|
'site',
|
||||||
|
'interface',
|
||||||
]) |
|
]) |
|
||||||
Q(app_label='ipam', model__in=[
|
Q(app_label='ipam', model__in=[
|
||||||
'aggregate',
|
'aggregate',
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{% extends '_base.html' %}
|
{% extends '_base.html' %}
|
||||||
|
{% load custom_links %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
@ -28,6 +29,9 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<h1>{% block title %}{{ interface.parent }} / {{ interface.name }}{% endblock %}</h1>
|
<h1>{% block title %}{{ interface.parent }} / {{ interface.name }}{% endblock %}</h1>
|
||||||
|
<div class="pull-right noprint">
|
||||||
|
{% custom_links interface %}
|
||||||
|
</div>
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
|
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
|
||||||
<a href="{{ interface.get_absolute_url }}">Interface</a>
|
<a href="{{ interface.get_absolute_url }}">Interface</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user