{% extends "email/base.html" %} {% load inflections %} {% block body %}
Добрый день!
{% if message.type == 'incoming' or message.type == 'brief' %} Кандидат {{ candidate.full_name }} отправил{% if candidate.gender == 'female' %}а{% endif %} письмо. {% elif message.type == 'outcoming' %} {{ message.author.full_name }} отправил{% if message.author.gender == 'female' %}а{% endif %} письмо кандидату {{ candidate.full_name|inflect_fio:3 }}. {% elif message.type == 'internal' %} {{ message.author.full_name }} добавил{% if message.author.gender == 'female' %}а{% endif %} комментарий по кандидату {{ application.candidate.full_name|inflect_fio:3 }} на вакансии {{ application.vacancy.composite_name }}. {% elif message.type == 'official' %} {{ message.author.full_name }} добавил{% if message.author.gender == 'female' %}а{% endif %} заметку о кандидате {{ candidate.full_name|inflect_fio:6 }}. {% endif %}

{% autoescape off %}{{ message.html }}{% endautoescape %} {% if attachments %}
Добавлены файлы:
{% for attachment in attachments %} {{ attachment.name }}
{% endfor %}
{% endif %}
{% if message.type == 'incoming' or message.type == 'outcoming'%} Перейти на страницу внешней коммуникации в Фемиде. {% elif message.type == 'internal' %} Перейти на страницу комментариев в Фемиде. {% elif message.type == 'official' %} Перейти на страницу заметок в Фемиде. {% endif %}
{% endblock %}