{% extends "base.html" %} {% block content %} {% for msg in messages %}
{% if msg.author and msg.author.userprofile and msg.author.userprofile.userpic %} {% endif %}
{% if msg.author %}{{msg.author.username}}{% else %}(анонимно){% endif %} {{msg.pub_date|date:'d.m.Y в H:i'}}

{{msg.subj}}

{{msg.text|linebreaksbr}}

{% empty %}

Нет ни одного сообщения. Напишите первое!

{% endfor %} {% endblock %}