{% extends "im/base.html" %} {% block extra_messages %} {% if not messages %} {% for msg_type, msg in GLOBAL_MESSAGES.items %}