{% load i18n %}{% comment %} Inline result of an `expect:` assertion on a captured value. {% include "yksa/ui/_expect_icon.html" with state=field.expect_state %} state pass | fail | unknown (anything else renders nothing) Deliberately not a yksa/ui/_state.html state: this annotates one value inside a row that already carries a state of its own, and a second pill there would read as a second object. {% endcomment %}{% spaceless %} {% if state == 'pass' %} {% elif state == 'fail' %} {% elif state == 'unknown' %}{% endif %} {% endspaceless %}