diff --git a/netbox/templates/ipam/prefix.html b/netbox/templates/ipam/prefix.html index ff588a72d..0aae1330d 100644 --- a/netbox/templates/ipam/prefix.html +++ b/netbox/templates/ipam/prefix.html @@ -31,161 +31,159 @@ {% endblock %} +{% block tab_items %} + + +{% if perms.ipam.view_ipaddress and object.status != 'container' %} + +{% endif %} +{% if perms.extras.view_objectchange %} + +{% endif %} +{% endblock %} {% block content %} -{% block tabs %} - -{% endblock %} -
-
-
-
- Prefix -
-
- - - +
+
+
+
+ Prefix +
+
+
- {{ object.get_status_display }} - {% if object.is_pool %} - Is a Pool - {% else %} - Not a Pool - {% endif %} -
+ + - - - - - - - - + + + + + + + + + + + - - - - + + + + + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - -
+ {{ object.get_status_display }} + {% if object.is_pool %} + Is a Pool + {% else %} + Not a Pool + {% endif %} +
FamilyIPv{{ object.family }}
VRF - {% if object.vrf %} - {{ object.vrf }} ({{ object.vrf.rd }}) - {% else %} - Global +
FamilyIPv{{ object.family }}
VRF + {% if object.vrf %} + {{ object.vrf }} ({{ object.vrf.rd }}) + {% else %} + Global + {% endif %} +
Tenant + {% if object.tenant %} + {% if object.tenant.group %} + {{ object.tenant.group }} / {% endif %} -
Tenant - {% if object.tenant %} - {% if object.tenant.group %} - {{ object.tenant.group }} / - {% endif %} - {{ object.tenant }} - {% else %} - None + {{ object.tenant }} + {% else %} + None + {% endif %} +
Aggregate + {% if aggregate %} + {{ aggregate.prefix }} ({{ aggregate.rir }}) + {% else %} + None + {% endif %} +
Site + {% if object.site %} + {% if object.site.region %} + {{ object.site.region }} / {% endif %} -
Aggregate - {% if aggregate %} - {{ aggregate.prefix }} ({{ aggregate.rir }}) - {% else %} - None + {{ object.site }} + {% else %} + None + {% endif %} +
VLAN + {% if object.vlan %} + {% if object.vlan.group %} + {{ object.vlan.group }} / {% endif %} -
Site - {% if object.site %} - {% if object.site.region %} - {{ object.site.region }} / - {% endif %} - {{ object.site }} - {% else %} - None - {% endif %} -
VLAN - {% if object.vlan %} - {% if object.vlan.group %} - {{ object.vlan.group }} / - {% endif %} - {{ object.vlan.display_name }} - {% else %} - None - {% endif %} -
Role - {% if object.role %} - {{ object.role }} - {% else %} - None - {% endif %} -
Description{{ object.description|placeholder }}
Utilization{% utilization_graph object.get_utilization %}
-
+ {{ object.vlan.display_name }} + {% else %} + None + {% endif %} + + + + Role + + {% if object.role %} + {{ object.role }} + {% else %} + None + {% endif %} + + + + Description + {{ object.description|placeholder }} + + + Utilization + {% utilization_graph object.get_utilization %} + +
- {% include 'inc/custom_fields_panel.html' %} - {% plugin_left_page object %} -
-
- {% if duplicate_prefix_table.rows %} - {% include 'panel_table.html' with table=duplicate_prefix_table heading='Duplicate Prefixes' %} - {% endif %} - {% include 'panel_table.html' with table=parent_prefix_table heading='Parent Prefixes' %} - {% plugin_right_page object %}
+ {% include 'inc/custom_fields_panel.html' %} + {% plugin_left_page object %}
-
-
- {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:prefix_list' %} -
+
+ {% if duplicate_prefix_table.rows %} + {% include 'panel_table.html' with table=duplicate_prefix_table heading='Duplicate Prefixes' %} + {% endif %} + {% include 'panel_table.html' with table=parent_prefix_table heading='Parent Prefixes' %} + {% plugin_right_page object %}
-
-
- {% plugin_full_width_page object %} -
+
+
+
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:prefix_list' %}
+
+
+
+ {% plugin_full_width_page object %} +
+
{% endblock %}