From aa919033e572a82d2b11f5c25f43e9f42571b6ce Mon Sep 17 00:00:00 2001 From: gorban Date: Mon, 17 Feb 2020 16:48:34 +0300 Subject: [PATCH] now it's readable --- netbox/templates/dcim/inc/interface.html | 33 +++++++++++++----------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/netbox/templates/dcim/inc/interface.html b/netbox/templates/dcim/inc/interface.html index 214e920b0..0bd3d2342 100644 --- a/netbox/templates/dcim/inc/interface.html +++ b/netbox/templates/dcim/inc/interface.html @@ -184,17 +184,16 @@ - {% with ipaddresses=iface.ip_addresses.all %} {% if ipaddresses %} -{# Placeholder#} + {# Placeholder#} {% if perms.dcim.change_interface or perms.dcim.delete_interface %} {% endif %} -{# IP addresses table#} - + {# IP addresses table #} + @@ -208,12 +207,12 @@ {% for ip in iface.ip_addresses.all %} -{# IP address#} + {# IP address #} - {# Primary/status/role#} + {# Primary/status/role #} - {#VRF#} + {# VRF #} - {#Description#} + {# Description #} - {#Buttons#} + {# Buttons #} - {#Tagged VLANs#} + {# Tagged VLANs #} {% if iface.tagged_vlans.all %} {% for tag in iface.tagged_vlans.all %} - {#VLAN ID#} + {# VLAN ID #} - {#VLAN tag#} + + {# VLAN tag #} - {#VLAN status#} + + {# VLAN status #} - {#VLAN name#} + + {# VLAN name #} - {#VLAN description#} + + {# VLAN description #} {% endfor %}
{{ ip }} {% if device.primary_ip4 == ip or device.primary_ip6 == ip %} Primary @@ -224,7 +223,7 @@ {% endif %} {% if ip.vrf %} {{ ip.vrf.name }} @@ -233,7 +232,7 @@ {% endif %} {% if ip.description %} {{ ip.description }} @@ -242,7 +241,7 @@ {% endif %} {% if perms.ipam.change_ipaddress %} @@ -309,29 +308,33 @@ {% endif %}
{{ tag.vid }}
  • {{ tag.status }} {{ tag.name }}{{ tag.description }}