{% load humanize helpers i18n %}

{% trans "Addressing" %} {% if object.prefix.version == 4 %} {% endif %}

{% with usage=object.get_ip_usage_summary %} {% with child_ip_count=object.get_child_ips.count %} {% endwith %} {% endwith %}
{% trans "Utilization" %} {% if object.mark_utilized %} {% utilization_graph 100 warning_threshold=0 danger_threshold=0 %} ({% trans "Marked fully utilized" %}) {% else %} {% utilization_graph usage.utilization %} {% endif %}
{% trans "Child IPs" %} {{ child_ip_count }}
{% trans "Available IPs" %} {% if usage.available_ip_count > 1000000 %} {{ usage.available_ip_count|intword }} {% else %} {{ usage.available_ip_count|intcomma }} {% endif %}
{% trans "First available IP" %} {% if usage.available_ip_count %} {% with first_available_ip=object.get_first_available_ip %} {% if first_available_ip %} {% if perms.ipam.add_ipaddress %} {{ first_available_ip }} {% else %} {{ first_available_ip }} {% endif %} {% else %} {{ ''|placeholder }} {% endif %} {% endwith %} {% else %} {{ ''|placeholder }} {% endif %}