{% load tz %} {% load l10n %} {# Default guards templates rendered without context processors (e.g. default 500/404 views). #} {% timezone user_timezone|default:"America/New_York" %} {% load static %} {% load django_htmx %} {% load club_nav_tags %} {# {% include 'demo_formatting.html' %} #} {% block analytics %} {% if GOOGLE_MEASUREMENT_ID %} {% endif %} {% if GOOGLE_TAG_ID %}{% endif %} {% endblock %} {% if rewrite_url %} {% endif %} {% block ads %} {% if show_ads and GOOGLE_ADSENSE_ID %} {% endif %} {% endblock %} {% block title %} {% if self.seo_title %}{{ self.seo_title }}{% else %}{{ self.title }}{% endif %} {% endblock %} {% block title_suffix %} {% with self.get_site.site_name as site_name %} {% if site_name %}- {{ site_name }}{% endif %} {% endwith %} {% endblock %} {% comment %} Prefer an explicit `club` in context (club pages); on auction pages fall back to the auction's club so the club favicon shows there too. `{% if %}` safely treats a missing `auction` as falsy (the `default` filter would raise on it). {% endcomment %} {% if club and club.icon %} {% elif auction.club and auction.club.icon %} {% else %} {% endif %} {# Global javascript #} {% block core_js %} {# 3.5.1 needed for focus to go to select2 dropdowns https://github.com/select2/select2/issues/5993 #} {# Bootstrap bundle includes Popper.js, no need to load separately #} {# Styled yes/no dialogs for data-confirm actions, in place of the browser's confirm() #} {% if request.user.is_authenticated %} {% endif %} {% endblock %} {% comment %} Cookies we set from JS get Secure whenever the page is https, so they can't be read off -- or overwritten on -- a plain-http request. Port 80 still answers with a 301 and we don't send HSTS, so that cleartext request is reachable. Secure is skipped on http to keep local dev on port 80 working; this mirrors SESSION_COOKIE_SECURE in settings.py. Deliberately outside core_js so a template overriding that block can't drop it. {% endcomment %} {% include 'base_page_view.html' %} {% if request.user.is_authenticated %} {% endif %} {# Global stylesheets #} {% block core_css %} {% endblock %} {% block extra_css %} {# Override this in templates to add extra stylesheets #} {% endblock %} {% block extra_head %}{% endblock %} {% if GOOGLE_TAG_ID %} {% endif %}
{% if hide_navbar %}