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

Fixes #3424: Fix tag coloring for non-linked tags

This commit is contained in:
Jeremy Stretch
2019-08-15 11:12:52 -04:00
parent 0b95cab47b
commit 3df8ccb92f
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -1,7 +1,5 @@
{% load helpers %}
{% if url_name %}
<a href="{% url url_name %}?tag={{ tag.slug }}"><span class="label label-default" style="color: {{ tag.color|fgcolor }}; background-color: #{{ tag.color }}">{{ tag }}</span></a>
{% else %}
<span class="label label-default">{{ tag }}</span>
{% endif %}
{% if url_name %}<a href="{% url url_name %}?tag={{ tag.slug }}">{% endif %}
<span class="label label-default" style="color: {{ tag.color|fgcolor }}; background-color: #{{ tag.color }}">{{ tag }}</span>
{% if url_name %}</a>{% endif %}