{# An error, as a fragment. Returned to htmx requests (``HX-Request: true``) so a failed Run press can be swapped into the page without losing it. ``error.html`` wraps the same markup in the full shell for a plain form post. #}
{{ error_detail }}
{% if run %} {# The conflict case: the run holding the project's lock is what the reader has to act on, so its status fragment is embedded rather than described. #} {% include "_run_status.html" %} {% endif %} {% if error_run_id %} {# ``project_base`` normally arrives from the page context processor, since ``error_response`` always renders this through a ``Request``. It falls back to the ``base`` environment global here only so a direct ``get_template("_error.html").render(...)`` -- with neither a ``Request`` nor an explicit ``project_base`` -- still emits a prefixed link rather than a bare one; that direct-render path is what ``test_fragments_rendered_without_a_request_are_prefixed`` exercises. #} {% endif %}