flash-messages.html 278 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} <div id="messages"> {% for level, message in messages %} <div class="alert alert-{{level}}" role="alert">{{ message }}</div> {% endfor %} </div> {% endif %} {% endwith %}