{% comment %}Model identity chip (Connections list). Expects `identity` from model_registry.identity.identity_view (or None). The run page uses the model modal instead (partials/model_modal.html).{% endcomment %}{% load identity_tags %} {% if identity %} {{ identity.kind_label }} {% if identity.card_url %}{{ identity.id|default:"model card" }} ↗{% elif identity.id %}{{ identity.id }}{% endif %} {% with lb=identity|leaderboard_link:leaderboard_url_template %}{% if lb %}Leaderboard ↗{% endif %}{% endwith %} {% endif %}