{# Detail fields fragment — renders entity item as a definition list.
Used by the API read handler for HTMX/browser content negotiation. #}
{{ entity_name }}
{% for key, value in item.items() %}
{% if value is not none and key != 'id' %}
{{ key | replace('_', ' ') | title }}
{% if value is sameas true %}
Yes
{% elif value is sameas false %}
No
{% elif value is string and value | length > 200 %}
{{ value[:200] }}…
{% else %}
{{ value }}
{% endif %}