Closes #4382: Enable custom links for rack reservations

This commit is contained in:
Jeremy Stretch 2020-03-18 14:50:49 -04:00
parent a9d04547d1
commit 7f5571200c
3 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,7 @@
* [#4369](https://github.com/netbox-community/netbox/issues/4369) - Add a dedicated view for rack reservations * [#4369](https://github.com/netbox-community/netbox/issues/4369) - Add a dedicated view for rack reservations
* [#4380](https://github.com/netbox-community/netbox/issues/4380) - Enable webhooks for rack reservations * [#4380](https://github.com/netbox-community/netbox/issues/4380) - Enable webhooks for rack reservations
* [#4381](https://github.com/netbox-community/netbox/issues/4381) - Enable export templates for rack reservations * [#4381](https://github.com/netbox-community/netbox/issues/4381) - Enable export templates for rack reservations
* [#4382](https://github.com/netbox-community/netbox/issues/4382) - Enable custom links for rack reservations
### Bug Fixes ### Bug Fixes

View File

@ -739,7 +739,7 @@ class Rack(ChangeLoggedModel, CustomFieldModel):
return 0 return 0
@extras_features('export_templates', 'webhooks') @extras_features('custom_links', 'export_templates', 'webhooks')
class RackReservation(ChangeLoggedModel): class RackReservation(ChangeLoggedModel):
""" """
One or more reserved units within a Rack. One or more reserved units within a Rack.

View File

@ -36,6 +36,9 @@
</div> </div>
<h1>{% block title %}{{ rackreservation }}{% endblock %}</h1> <h1>{% block title %}{{ rackreservation }}{% endblock %}</h1>
{% include 'inc/created_updated.html' with obj=rackreservation %} {% include 'inc/created_updated.html' with obj=rackreservation %}
<div class="pull-right noprint">
{% custom_links rackreservation %}
</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="{{ rackreservation.get_absolute_url }}">Rack</a> <a href="{{ rackreservation.get_absolute_url }}">Rack</a>