{% set _up_mode = request.headers.get('X-Up-Mode', '') %} {% if _up_mode == 'modal' %} {# Still a
: this fragment replaces #main-content in the host document, so degrading it to a
would delete the main landmark from the page on the first modal navigation. #}
{% include "style/_flashes.html" %} {% block page_heading %}

{{ construct.page_heading }}

{% endblock %} {% block content %}{% endblock %}
{% else %}
{% include "style/_flashes.html" %} {{ self.page_heading() }} {{ self.content() }}
{% endif %}