diff --git a/netbox/extras/ui/panels.py b/netbox/extras/ui/panels.py index b4b6e73b5..484583bc7 100644 --- a/netbox/extras/ui/panels.py +++ b/netbox/extras/ui/panels.py @@ -425,6 +425,11 @@ class TagPanel(panels.ObjectAttributesPanel): description = attrs.TextAttr('description') color = attrs.ColorAttr('color') weight = attrs.NumericAttr('weight') + tagged_items = attrs.TemplatedAttr( + 'extras_taggeditem_items', + label=_('Tagged Items'), + template_name='extras/tag/attrs/tagged_item_count.html', + ) class TagObjectTypesPanel(panels.ObjectPanel): diff --git a/netbox/templates/extras/tag/attrs/tagged_item_count.html b/netbox/templates/extras/tag/attrs/tagged_item_count.html new file mode 100644 index 000000000..5a051633a --- /dev/null +++ b/netbox/templates/extras/tag/attrs/tagged_item_count.html @@ -0,0 +1 @@ +{{ value.count }}