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
|
||||
|
||||
* [#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
|
||||
|
||||
|
@ -48,6 +48,7 @@ CUSTOMLINK_MODELS = Q(
|
||||
'powerfeed',
|
||||
'rack',
|
||||
'site',
|
||||
'interface',
|
||||
]) |
|
||||
Q(app_label='ipam', model__in=[
|
||||
'aggregate',
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user