<div id="messages">
    {% for message in messages %}
        <h2>{{ message.heading }}</h2>
        <div class="pane message" data-key="{{ message.key }}">
            <div class="subject">{{ message.subject }}</div>
            <div class="body">{{ message.body|nl2br }}</div>
        </div>
    {% endfor %}
</div>
