mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 18:08:38 -06:00
Fix tags display
This commit is contained in:
parent
bf7bd68b6a
commit
6e50ed084d
@ -31,7 +31,7 @@
|
|||||||
{% if iface.description %}
|
{% if iface.description %}
|
||||||
{{ iface.description }}<br/>
|
{{ iface.description }}<br/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for tag in iface.tags.all.unrestricted %}
|
{% for tag in iface.tags.all %}
|
||||||
{% tag tag %}
|
{% tag tag %}
|
||||||
{% empty %}
|
{% empty %}
|
||||||
{% if not iface.description %}—{% endif %}
|
{% if not iface.description %}—{% endif %}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<strong>Tags</strong>
|
<strong>Tags</strong>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{% for tag in tags.all.unrestricted %}
|
{% for tag in tags.all %}
|
||||||
{% tag tag url %}
|
{% tag tag url %}
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<span class="text-muted">No tags assigned</span>
|
<span class="text-muted">No tags assigned</span>
|
||||||
|
@ -202,7 +202,7 @@ class TagColumn(tables.TemplateColumn):
|
|||||||
Display a list of tags assigned to the object.
|
Display a list of tags assigned to the object.
|
||||||
"""
|
"""
|
||||||
template_code = """
|
template_code = """
|
||||||
{% for tag in value.all.unrestricted %}
|
{% for tag in value.all %}
|
||||||
{% include 'utilities/templatetags/tag.html' %}
|
{% include 'utilities/templatetags/tag.html' %}
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<span class="text-muted">—</span>
|
<span class="text-muted">—</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user