{% set selected = namespace(number=none) %} {% for item in related_sources %}{% if item.source_id == source_id and item.source_type == source_type %}{% set selected.number = loop.index %}{% endif %}{% endfor %}
{{ source.source_id }}{% endif %}
{% if not standalone|default(false) %}{% include 'components/source-network-error.html' %}{% endif %}