From f0d8e02d63e890a7e7c7deb14dfd99786c7ab368 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 19 Dec 2016 14:45:25 -0500 Subject: [PATCH] Fixed prefix/VLAN role links --- netbox/ipam/tables.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/netbox/ipam/tables.py b/netbox/ipam/tables.py index 4e6b60e6a..2c04b97c3 100644 --- a/netbox/ipam/tables.py +++ b/netbox/ipam/tables.py @@ -59,7 +59,11 @@ PREFIX_LINK_BRIEF = """ """ PREFIX_ROLE_LINK = """ -{{ record.role }} +{% if record.role %} + {{ record.role }} +{% else %} + — +{% endif %} """ IPADDRESS_LINK = """ @@ -99,7 +103,11 @@ VLAN_PREFIXES = """ """ VLAN_ROLE_LINK = """ -{{ record.role }} +{% if record.role %} + {{ record.role }} +{% else %} + — +{% endif %} """ VLANGROUP_ACTIONS = """