{% extends "openinghours/base.html" %} {% load i18n %} {% load openinghours_tags %} {% block content %}

Check current situation

{% verbatim %}
{% is_open location as open %}
{% if open %}
    Come in, we're open!
{% else %}
    Sorry, we're closed.
    Reopening
    {% next_time_open location as next %}
    {{ next.get_weekday_display }} {{ next.from_hour }}
{% endif %}
{% endverbatim %} {% is_open location as open %} {% if open %}
Come in, we're open!
{% else %}
Sorry, we're closed. Reopening {% next_time_open location as next %} {{ next.get_weekday_display }} {{ next.from_hour }}
{% endif %}

Display opening hours

{% verbatim %}
{% opening_hours location %}
{% endverbatim %} {% opening_hours location %}

Concise opening hours:

{% verbatim %}
{% opening_hours location concise=1 %}
{% endverbatim %} {% opening_hours location concise=1 %} {% endblock %}