{% load i18n plmapp_tags %} {% block content %}
{% if documents|key:c.link.child_id or alternates|key:c.link.child_id %} | {% with c.link as link %} {% else %} {% if forloop.last or level == "last" %} {% else %} {% with forloop.counter as next %} {% with children|indice:next as ci%} {% if ci.level > c.level %} {% else %} {% endif %} {% endwith %} {% endwith %} {% endif %} {% endif %}{{ link.order }} | {{ link.quantity }} | {{ link.get_unit_display }} | {% with link.child as child %}{{ child.reference }} | {{ child.revision }} | {{ child.type }} | {{ child.name }} | {% for field, verbose_name in extra_columns %}{{ extension_data|key:link.id|key:field }} | {% endfor %}{{ child.state.name }} | {{ states|key:child.id }} | {% endwith %} {% endwith %}