{% if g.user or request.endpoint in ("auth.login", "auth.setup") %} {% endif %} {% block title %}LibreSignage{% endblock %} {% block head %}{% endblock %} {% set is_admin_shell = g.user and request.endpoint != 'main.index' %} {% set is_auth_shell = request.endpoint in ('auth.login', 'auth.setup') %} {% block body %} {% if is_admin_shell %} {% set current_endpoint = request.endpoint or '' %} {% set library_active = request.blueprint == 'content' and not current_endpoint.startswith('content.schedule') %} {% set operations_active = current_endpoint.startswith('content.schedule') or current_endpoint == 'dashboard.proof_of_play' %} {% set admin_active = current_endpoint in ('auth.users', 'auth.audit_log', 'auth.backups', 'dashboard.webhooks') %} Skip to main content
LibreSignage {{ g.user.username[:1]|upper }}
{% for category, message in get_flashed_messages(with_categories=true) %} {% endfor %} {% block content %}{% endblock %}
{% elif is_auth_shell %}
LibreSignage
{% for category, message in get_flashed_messages(with_categories=true) %} {% endfor %} {% block auth_content %}{{ self.content() }}{% endblock %}
{% else %}
{% for category, message in get_flashed_messages(with_categories=true) %}{% endfor %} {% block public_content %}{{ self.content() }}{% endblock %}
{% endif %} {% endblock %} {% if g.user or request.endpoint in ('auth.login', 'auth.setup') %}{% endif %} {% block scripts %}{% endblock %}