{% badge route.get_origin_display bg_color=route.get_origin_color %}
{% for prefix in route.origin_prefixes.all %}
{{ prefix|linkify }}
{% endfor %}
{% if route_hops or path %}
{% trans "Route" %}{% if path %}: {{ route|linkify }}{% endif %}
{% for hop in route_hops %}
{% include 'netbox_access_paths/inc/hop.html' %}{% if not forloop.last %}{% endif %}
{% empty %}
{% trans "direct, no hops" %}
{% endfor %}
{% endif %}
{% if path %}
{% if path_hops %}
{% trans "Customer side" %}
{% for hop in path_hops %}
{% include 'netbox_access_paths/inc/hop.html' %}{% if not forloop.last %}{% endif %}
{% endfor %}