{% set path = request.url.path if request else "" %}
{% macro nav(href, label, match=None) -%}
{{ label }}{{ caller() if caller }}
{%- endmacro %}
racinglines{% if env_label() %}{{ env_label() }}{% endif %}
{% if user and user.role == 'admin' %}Polymarket: {{ trading.status() }}{% endif %}
{% if user and not (alpha_layout is defined and alpha_layout()) %}Pitch{% endif %}
{% if user %}{% endif %}
{% if user %}{{ user.username }}{{ user.role }}{% if is_demo(user) %}{% if signup_on() %}Sign up{% endif %}{% else %}Settings{% endif %}{% endif %}
{% if user %}Log out{% endif %}
{% block content %}{% endblock %}
{% include "_site_notice.html" %}