From b9cc93ad3fa0ac642232e583b6780fe01be8ae5d Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 22 Oct 2025 15:10:19 -0400 Subject: [PATCH] Misc cleanup --- netbox/templates/generic/object.html | 26 +++++++++++++++++--------- netbox/templates/users/group.html | 10 ++++++++++ netbox/templates/users/user.html | 10 ++++++++++ netbox/users/tables.py | 1 + 4 files changed, 38 insertions(+), 9 deletions(-) diff --git a/netbox/templates/generic/object.html b/netbox/templates/generic/object.html index e7ef9d97e..df95a4a42 100644 --- a/netbox/templates/generic/object.html +++ b/netbox/templates/generic/object.html @@ -55,15 +55,23 @@ Context: {% block subtitle %}
- {% if object.owner %} - {{ object.owner|linkify }} - · - {% endif %} - {% trans "Created" %} {{ object.created|isodatetime:"minutes" }} - {% if object.last_updated %} - · - {% trans "Updated" %} {{ object.last_updated|isodatetime:"minutes" }} - {% endif %} +
{% endblock subtitle %} diff --git a/netbox/templates/users/group.html b/netbox/templates/users/group.html index 0a89f151a..9d4561c65 100644 --- a/netbox/templates/users/group.html +++ b/netbox/templates/users/group.html @@ -45,6 +45,16 @@ {% endfor %} +
+

{% trans "Owner Membership" %}

+
+ {% for owner in object.owners.all %} + {{ owner }} + {% empty %} +
{% trans "None" %}
+ {% endfor %} +
+
{% endblock %} diff --git a/netbox/templates/users/user.html b/netbox/templates/users/user.html index 90a0bb084..efcc743f5 100644 --- a/netbox/templates/users/user.html +++ b/netbox/templates/users/user.html @@ -63,6 +63,16 @@ {% endfor %} +
+

{% trans "Owner Membership" %}

+
+ {% for owner in object.owners.all %} + {{ owner }} + {% empty %} +
{% trans "None" %}
+ {% endfor %} +
+
{% if perms.core.view_objectchange %} diff --git a/netbox/users/tables.py b/netbox/users/tables.py index 1e6fcec03..277b176fe 100644 --- a/netbox/users/tables.py +++ b/netbox/users/tables.py @@ -168,3 +168,4 @@ class OwnerTable(NetBoxTable): fields = ( 'pk', 'id', 'name', 'description', 'groups', 'users', ) + default_columns = ('pk', 'name', 'description', 'groups', 'users')