mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #1846: Enable MPTT for InventoryItem hierarchy
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
</td>
|
||||
{% endif %}
|
||||
|
||||
<td style="padding-left: {{ indent|add:5 }}px">
|
||||
<td style="padding-left: {{ item.level }}0px">
|
||||
<a href="{{ item.get_absolute_url }}">{{ item }}</a>
|
||||
</td>
|
||||
<td>
|
||||
@@ -38,8 +38,3 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% for item in item.child_items.all %}
|
||||
{% with template_name='dcim/inc/inventoryitem.html' indent=indent|add:20 %}
|
||||
{% include template_name %}
|
||||
{% endwith %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user