File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 99from netbox .tables import NetBoxTable , columns
1010from utilities .permissions import get_permission_for_model
1111
12- from netbox_custom_objects .constants import APP_LABEL
1312from netbox_custom_objects .models import CustomObject , CustomObjectType
1413from netbox_custom_objects .utilities import get_viewname
1514
@@ -95,8 +94,13 @@ class CustomObjectTagColumn(columns.TagColumn):
9594 template_code = """
9695 {% load helpers %}
9796 {% for tag in value.all %}
98- <a href="{% url 'plugins:netbox_custom_objects:customobject_list' custom_object_type=record.custom_object_type.slug %}?tag={{ tag.slug }}">
99- <span {% if tag.description %}title="{{ tag.description }}"{% endif %} class="badge" style="color: {{ tag.color|fgcolor }}; background-color: #{{ tag.color }}">{{ tag }}</span>
97+ <a href="{% url 'plugins:netbox_custom_objects:customobject_list'
98+ custom_object_type=record.custom_object_type.slug %}?tag={{ tag.slug }}">
99+ <span {% if tag.description %}title="{{ tag.description }}"{% endif %}
100+ class="badge"
101+ style="color: {{ tag.color|fgcolor }}; background-color: #{{ tag.color }}">
102+ {{ tag }}
103+ </span>
100104 </a>
101105 {% empty %}
102106 <span class="text-muted">—</span>
You can’t perform that action at this time.
0 commit comments