{# One copy of every repeated piece of markup. The full pages and the JSON poll endpoints both render these macros, so a change to an entry, a row or the action bar cannot drift between the two. ``entry`` and ``ticket_row`` take a view dataclass; the rest take the page. #} {% macro file_icon() -%} {%- endmacro %} {# Read-only files under a thread entry: images open the lightbox, everything else is a download link. The stored file name is never shown; only the original name the user uploaded. ``large`` turns the images into content-width previews; the agent reply keeps the compact thumbnails. #} {% macro file_list(files, large=false) -%} {% if files %}
{{ new_badge(entry) }}{{ entry.notice }}
{% elif entry.kind == "error" %}Symphony error {{ new_badge(entry) }}
{% if entry.retry_action %}{% endif %}Working, {{ page.working_for }}{% if page.last_output_ago %} ยท last output {{ page.last_output_ago }} ago{% endif %}
{%- endmacro %} {# The running turn's steps, directly above the working line. The page renders this empty block and the first poll fills it (a page with no cursor asks for a replacement). The poll then appends list items only, so the block's own markup lives in one place. The stylesheet hides all but the last five steps unless the block carries ``steps--all``. #} {% macro steps_block() -%}New tickets and anything waiting on you will appear here.
{{ group.empty_text }}
{% endif %}Done tickets, newest first.
No done tickets.
{% endif %}