{% load i18n helpers ipam_tree %}{% if error %} {% trans "Not found or no permission." %} {% else %}{% for node in nodes %} {% if node.has_children %}{% else %}{% endif %} {% if node.kind == "vrf" %} {% if node.obj %}{{ node.obj.name }}{% if node.obj.rd %} {{ node.obj.rd }}{% endif %}{% else %}{% trans "Global" %}{% endif %} {% elif node.kind == "aggregate" %} {{ node.obj.prefix }} {{ node.obj.rir }}{% if node.label %} · {{ node.label }}{% endif %} {% elif node.kind == "prefix" %} {{ node.obj.prefix }} {% elif node.kind == "gap" %} {{ node.network }} · {{ node.network.size }} {% trans "addresses free" %} {% if tree_perms.add %} {% trans "Create" %}{% endif %} {% elif node.kind == "more" %} {% blocktrans with c=node.count a=node.addresses %}{{ c }} more free blocks ({{ a }} addresses){% endblocktrans %} {% endif %} {% for col in columns %}{% if node.kind == "prefix" %}{% if col == "status" %}{% badge node.obj.get_status_display bg_color=node.obj.get_status_color %}{% elif col == "utilization" %}{{ node.utilization|util_bar }}{% elif col == "vrf" %}{{ node.obj.vrf|obj_link }}{% elif col == "scope" %}{{ node.obj.scope|obj_link }}{% elif col == "vlan" %}{{ node.obj.vlan|obj_link }}{% elif col == "tenant" %}{{ node.obj.tenant|obj_link }}{% elif col == "role" %}{{ node.obj.role|obj_link }}{% elif col == "children" %}{{ node.child_count|placeholder }}{% elif col == "is_pool" %}{% checkmark node.obj.is_pool %}{% elif col == "mark_utilized" %}{% checkmark node.obj.mark_utilized %}{% elif col == "tags" %}{% for t in node.obj.tags.all %}{% tag t %}{% endfor %}{% elif col == "description" %}{{ node.obj.description|placeholder }}{% elif col == "created" %}{{ node.obj.created|isodate }}{% elif col == "last_updated" %}{{ node.obj.last_updated|isodatetime }}{% elif col == "actions" %} {% if tree_perms.add %}{% endif %} {% if tree_perms.change %}{% endif %} {% if tree_perms.delete %}{% endif %} {% endif %}{% elif node.kind == "aggregate" and col == "utilization" %}{% utilization_graph node.obj.get_utilization %}{% endif %}{% endfor %} {% endfor %}{% endif %}