From dd58e78fde3f64be3952c9f36f4237486549d541 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 15 Apr 2019 21:38:04 -0400 Subject: [PATCH] Add custom links to templates --- netbox/extras/constants.py | 1 - netbox/templates/circuits/circuit.html | 4 ++++ netbox/templates/circuits/provider.html | 4 ++++ netbox/templates/dcim/cable.html | 5 +++++ netbox/templates/dcim/devicetype.html | 4 ++++ netbox/templates/dcim/powerfeed.html | 5 ++++- netbox/templates/dcim/powerpanel.html | 5 ++++- netbox/templates/dcim/rack.html | 4 ++++ netbox/templates/dcim/site.html | 4 ++++ netbox/templates/ipam/aggregate.html | 4 ++++ netbox/templates/ipam/ipaddress.html | 4 ++++ netbox/templates/ipam/prefix.html | 4 ++++ netbox/templates/ipam/service.html | 4 ++++ netbox/templates/ipam/vlan.html | 4 ++++ netbox/templates/ipam/vrf.html | 4 ++++ netbox/templates/secrets/secret.html | 4 ++++ netbox/templates/tenancy/tenant.html | 4 ++++ netbox/templates/virtualization/cluster.html | 4 ++++ netbox/templates/virtualization/virtualmachine.html | 4 ++++ 19 files changed, 73 insertions(+), 3 deletions(-) diff --git a/netbox/extras/constants.py b/netbox/extras/constants.py index 14c25e2f58f..4daf3283966 100644 --- a/netbox/extras/constants.py +++ b/netbox/extras/constants.py @@ -46,7 +46,6 @@ 'dcim.powerfeed', 'dcim.rack', 'dcim.site', - 'dcim.region', 'ipam.aggregate', 'ipam.ipaddress', 'ipam.prefix', diff --git a/netbox/templates/circuits/circuit.html b/netbox/templates/circuits/circuit.html index 8c9620dc12e..a29a2ed7cd6 100644 --- a/netbox/templates/circuits/circuit.html +++ b/netbox/templates/circuits/circuit.html @@ -1,4 +1,5 @@ {% extends '_base.html' %} +{% load custom_links %} {% load helpers %} {% block title %}{{ circuit }}{% endblock %} @@ -41,6 +42,9 @@

{{ circuit }}

{% include 'inc/created_updated.html' with obj=circuit %} +
+ {% custom_links circuit %} +