{# Expects `current_view` ("mobile" or anything else = desktop). Pass `switch_url` for pages that toggle view via a server route (redirect-based switch); omit it for pages that toggle via the `view` cookie + a page reload (JS-based switch). #} {% if switch_url %}
{% if current_view == "mobile" %} {% else %} {% endif %}
{% else %}
{% if current_view == "mobile" %} {% else %} {% endif %}
{% endif %}