{% extends "base.html" %} {% block title %} {% if inbox %}Входящие сообщения{% else %}Исходящие сообщения{% endif %} {% endblock %} {% block location %} {% if inbox %}Входящие{% else %}Исходящие{% endif %} {% endblock %} {% block content %} {% for m in messages %} {% endfor %}
{{m.date_sent}} {{m.sender.username}} {{m.addressee.username}} {{m.subject}}
{% endblock %}