Explorar o código

Closes #8601: Include group when displaying tenant assigned to cluster

jeremystretch %!s(int64=3) %!d(string=hai) anos
pai
achega
2d09a40663
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      netbox/templates/virtualization/cluster.html

+ 3 - 0
netbox/templates/virtualization/cluster.html

@@ -33,6 +33,9 @@
                     <th scope="row">Tenant</th>
                     <th scope="row">Tenant</th>
                     <td>
                     <td>
                         {% if object.tenant %}
                         {% if object.tenant %}
+                            {% if object.tenant.group %}
+                                <a href="{{ object.tenant.group.get_absolute_url }}">{{ object.tenant.group }}</a> /
+                            {% endif %}
                             <a href="{{ object.tenant.get_absolute_url }}">{{ object.tenant }}</a>
                             <a href="{{ object.tenant.get_absolute_url }}">{{ object.tenant }}</a>
                         {% else %}
                         {% else %}
                             <span class="text-muted">None</span>
                             <span class="text-muted">None</span>