{# @description Key-value display; links the value when it has a URL. #} {# @prop label:text | description:"Field label, shown above the value." #} {# @prop value:text | description:"Field value; linked when it has get_absolute_url." #} {# @prop help_text:text | description:"Tooltip text shown on the label." #} {# @prop missing:text | default:"–" | description:"Placeholder shown when value and the slot are both empty." #} {# @slot Extra value content — Rendered alongside the value when given. #}
{{ label }}
{% if value.get_absolute_url %} {{ value }} {% else %}

{% if not value and not slot %}{{ missing }}{% endif %} {{ value }}{{ slot }}

{% endif %}