{% comment %}
Fetch the status of the location on the client side
as a Wagtail API usage example and to allow for
caching of the whole page without the status.
{% endcomment %}
{% if request.is_preview %}
{% if page.is_open %}
This location is currently open.
{% else %}
Sorry, this location is currently closed.
{% endif %}
{% else %}
Please wait…
{% endif %}
Address
{{ page.address|linebreaks }}
{% if page.operating_hours %}
Opening hours
{% for hours in page.operating_hours %}
{% endfor %}
{% endif %}