Wrap all user-visible strings for translation, ship a complete German catalogue, align the NetBox version range (4.4.0-4.7.x) with the README and add a test that keeps them in sync. Co-Authored-By: Claude Opus 5.5 <[email protected]>
22 lines
969 B
HTML
22 lines
969 B
HTML
{% load i18n %}
|
|
<li class="netbox-doc-tree-item" data-name="{{ node.object.name|lower }}">
|
|
<details open>
|
|
<summary class="netbox-doc-tree-summary">
|
|
<i class="mdi mdi-folder text-warning"></i>
|
|
<a href="{{ node.object.get_absolute_url }}">{{ node.object.name }}</a>
|
|
{% if node.object.tenant %}<span class="badge text-bg-light"><i class="mdi mdi-domain"></i> {{ node.object.tenant }}</span>{% endif %}
|
|
</summary>
|
|
<ul class="netbox-doc-tree list-unstyled">
|
|
{% for child in node.children %}
|
|
{% include 'netbox_documentation/inc/document_tree_node.html' with node=child %}
|
|
{% endfor %}
|
|
{% for document in node.documents %}
|
|
{% include 'netbox_documentation/inc/document_tree_file.html' with document=document %}
|
|
{% endfor %}
|
|
{% if not node.children and not node.documents %}
|
|
<li class="netbox-doc-tree-empty text-muted">{% trans "Empty" %}</li>
|
|
{% endif %}
|
|
</ul>
|
|
</details>
|
|
</li>
|