From 3df8ccb92fa957da5a0af4b57ef79a02d32e4ef1 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 15 Aug 2019 11:12:52 -0400 Subject: [PATCH] Fixes #3424: Fix tag coloring for non-linked tags --- CHANGELOG.md | 1 + netbox/templates/utilities/templatetags/tag.html | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8e536572..512fab38f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ v2.6.3 (FUTURE) ## Bug Fixes * [#3420](https://github.com/netbox-community/netbox/issues/3420) - Serial number filter for racks, devices, and inventory items is now case-insensitive +* [#3424](https://github.com/netbox-community/netbox/issues/3424) - Fix tag coloring for non-linked tags ## Enhancements diff --git a/netbox/templates/utilities/templatetags/tag.html b/netbox/templates/utilities/templatetags/tag.html index 0be4e7ca5..8edc83f9c 100644 --- a/netbox/templates/utilities/templatetags/tag.html +++ b/netbox/templates/utilities/templatetags/tag.html @@ -1,7 +1,5 @@ {% load helpers %} -{% if url_name %} - {{ tag }} -{% else %} - {{ tag }} -{% endif %} +{% if url_name %}{% endif %} +{{ tag }} +{% if url_name %}{% endif %}