{% extends "email/base.html" %}
{% load inflections %}

{% block body %}
    <p>Добрый день!</p>
    <p>
        <a href="{{ staff_url }}{{ initiator.username }}">{{ initiator.full_name }}</a>
        изменил{% if initiator.gender == 'female' %}а{% endif %}
        {{ what_changed }} кандидата
        <a href="{{ femida_url }}candidates/{{ instance.candidate.id }}">
            {{ instance.candidate.get_full_name|inflect_fio:2 }}
        </a>
        по вакансии <a href="{{ femida_url }}vacancies/{{ instance.vacancy.id }}">{{ instance.vacancy.composite_name }}</a>: <b>{{ new_value }}</b>.
    </p>

    {% if message %}
    <p>
        <b>Комментарий:</b><br/>
        {% autoescape off %}{{ message.html }}{% endautoescape %}
    </p>
    {% endif %}
    <br>
{% endblock %}
