{#- The mark before the title of a chat in a list, for `mark`, a `ChatMark`; nothing for a chat with no mark. -#} {% macro chat_mark(mark) -%} {% if mark -%} {% set text = {"working": "An agent works here", "proposal": "A proposal waits here", "new": "A new answer", "failed": "The answer failed or was stopped"}[mark] -%} {%- endif %} {%- endmacro %}