1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Custom link cleanup

This commit is contained in:
Jeremy Stretch
2019-04-15 21:29:02 -04:00
parent 4536754b20
commit 2ec7ac1ea3
4 changed files with 57 additions and 7 deletions

View File

@ -36,6 +36,29 @@ CF_FILTER_CHOICES = (
)
# Custom links
CUSTOM_LINK_MODELS = [
'circuits.circuit',
'circuits.provider',
'dcim.cable',
'dcim.device',
'dcim.devicetype',
'dcim.powerpanel',
'dcim.powerfeed',
'dcim.rack',
'dcim.site',
'dcim.region',
'ipam.aggregate',
'ipam.ipaddress',
'ipam.prefix',
'ipam.service',
'ipam.vlan',
'ipam.vrf',
'secrets.secret',
'tenancy.tenant',
'virtualization.cluster',
'virtualization.virtualmachine',
]
BUTTON_CLASS_DEFAULT = 'default'
BUTTON_CLASS_PRIMARY = 'primary'
BUTTON_CLASS_SUCCESS = 'success'
@ -50,7 +73,7 @@ BUTTON_CLASS_CHOICES = (
(BUTTON_CLASS_INFO, 'Info (aqua)'),
(BUTTON_CLASS_WARNING, 'Warning (orange)'),
(BUTTON_CLASS_DANGER, 'Danger (red)'),
(BUTTON_CLASS_LINK, 'None'),
(BUTTON_CLASS_LINK, 'None (link)'),
)
# Graph types