From a71604e79fd51cfce5e3e0c4943c72325e6b2ee3 Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 19 Aug 2021 12:35:30 -0700 Subject: [PATCH] Closes #6881: Wrap interface IP addresses in a badge that displays status and/or role --- netbox/dcim/tables/template_code.py | 16 +++++++++++++--- netbox/project-static/dist/netbox-dark.css | Bin 807684 -> 808043 bytes netbox/project-static/dist/netbox-light.css | Bin 502373 -> 502664 bytes netbox/project-static/dist/netbox-print.css | Bin 1658189 -> 1658782 bytes netbox/project-static/styles/netbox.scss | 18 ++++++++++++++++++ 5 files changed, 31 insertions(+), 3 deletions(-) diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py index fa22dd5c0..65a30ac61 100644 --- a/netbox/dcim/tables/template_code.py +++ b/netbox/dcim/tables/template_code.py @@ -41,9 +41,19 @@ DEVICEBAY_STATUS = """ """ INTERFACE_IPADDRESSES = """ -{% for ip in record.ip_addresses.all %} - {{ ip }}
-{% endfor %} +
+ {% for ip in record.ip_addresses.all %} + + {{ ip }} + + {% endfor %} +
""" INTERFACE_TAGGED_VLANS = """ diff --git a/netbox/project-static/dist/netbox-dark.css b/netbox/project-static/dist/netbox-dark.css index 749b9bd4892c7c2eee79af8876fd620fdbbd3e58..0d06bf3e7f4786ab47c60d5950f28a09a46b3ae7 100644 GIT binary patch delta 184 zcmZo!X83xAVM7aJ3sVbo3rh=Y3tJ0&3r7oQ3s(#G79I`v=?RKFY(jb^iAg!Bx=D#C z>8ZNuMfs%#)9rdVyFRkTh6>d`IEtV*@gGY1Jn1jd*D|O!d)P@$u7N!>F7M2#)7Pc1l7LFFq7OocV7M>Q~7QPn#7J(MQ7NHj57LgXw z7O@ub7KtsA-KNtw;z(*o2UE z=%yFtmljMve_o;nY@8IPqykiEdVmX$65MbC3N^u2!L))M2eAr8sCs(fGd>aK+|0b` z@|PrJg>n;%(lhgPOY#e>^o&f4Qgf}RKYS-7GCgXhupFbw^o6^`#HOD!m*k&*##B-k NF7M2#)7Pc1l7LFFq7OocV7M>Q~7QPn#7J(MQ7NHj57LgXw j7O@ub7KtsA-KNv!tt9!U%UVdvP7V-c+s