{# Coffee House Flash Messages Component. Renders server-side flash messages with proper ARIA roles and dismiss buttons. Expected context: - flash_messages: list[dict] with .level ("success"|"error"|"warning"|"info") and .message - OR: error (str) — shorthand for a single error message (Auth login pattern) #} {% if flash_messages is defined and flash_messages %}
{% for flash in flash_messages %} {% endfor %}
{% endif %} {# Shorthand: single error string (used by Auth login page) #} {% if error is defined and error %} {% endif %}