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

Fixed prefix/VLAN role links

This commit is contained in:
Jeremy Stretch
2016-12-19 14:45:25 -05:00
parent 44d5ff26a4
commit f0d8e02d63

View File

@ -59,7 +59,11 @@ PREFIX_LINK_BRIEF = """
"""
PREFIX_ROLE_LINK = """
<a href="{% url 'ipam:prefix_list' %}?role={{ record.role.slug }}">{{ record.role }}</a>
{% if record.role %}
<a href="{% url 'ipam:prefix_list' %}?role={{ record.role.slug }}">{{ record.role }}</a>
{% else %}
&mdash;
{% endif %}
"""
IPADDRESS_LINK = """
@ -99,7 +103,11 @@ VLAN_PREFIXES = """
"""
VLAN_ROLE_LINK = """
<a href="{% url 'ipam:vlan_list' %}?role={{ record.role.slug }}">{{ record.role }}</a>
{% if record.role %}
<a href="{% url 'ipam:vlan_list' %}?role={{ record.role.slug }}">{{ record.role }}</a>
{% else %}
&mdash;
{% endif %}
"""
VLANGROUP_ACTIONS = """