mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-22 23:46:44 -06:00
renamed display_region to nested_tree #13735
This commit is contained in:
parent
d97449560f
commit
2ea37ad221
@ -6,7 +6,7 @@ register = template.Library()
|
||||
|
||||
|
||||
@register.simple_tag(takes_context=True)
|
||||
def display_region(context, obj):
|
||||
def nested_tree(context, obj):
|
||||
"""
|
||||
Renders hierarchical region data for a given object.
|
||||
"""
|
||||
|
@ -17,7 +17,7 @@
|
||||
<tr>
|
||||
<th scope="row">{% trans "Region" %}</th>
|
||||
<td>
|
||||
{% display_region object %}
|
||||
{% nested_tree object %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -18,7 +18,7 @@
|
||||
<tr>
|
||||
<th scope="row">{% trans "Region" %}</th>
|
||||
<td>
|
||||
{% display_region object %}
|
||||
{% nested_tree object %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<tr>
|
||||
<th scope="row">{% trans "Region" %}</th>
|
||||
<td>
|
||||
{% display_region rack %}
|
||||
{% nested_tree rack %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -30,7 +30,7 @@
|
||||
<tr>
|
||||
<th scope="row">{% trans "Region" %}</th>
|
||||
<td>
|
||||
{% display_region object %}
|
||||
{% nested_tree object %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -48,7 +48,7 @@
|
||||
<tr>
|
||||
<th scope="row">{% trans "Region" %}</th>
|
||||
<td>
|
||||
{% display_region object %}
|
||||
{% nested_tree object %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -17,7 +17,7 @@
|
||||
<tr>
|
||||
<th scope="row">{% trans "Region" %}</th>
|
||||
<td>
|
||||
{% display_region object %}
|
||||
{% nested_tree object %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user