{% from 'common/infobox.html' import infobox with context %} {% if title %} Porom - {% block title %}{% endblock %} {% else %} Porom {% endif %} {% include 'common/topnav.html' %} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {{ infobox(message, category) }} {% endfor %} {% endif %} {% endwith %} {% block content %}{% endblock %}