{% 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. #}
{# Body first, as in base_full.html: a page may place flashes() itself. #} {% set _fcu_body %} {% block page_heading %}

{{ construct.page_heading }}

{% endblock %} {% block content %}{% endblock %} {% endset %} {{ flashes() }} {{ _fcu_body }}
{% else %}
{% set _fcu_body %}{{ self.page_heading() }}{{ self.content() }}{% endset %} {{ flashes() }} {{ _fcu_body }}
{% endif %}