{% extends "departments/notifications/departments_base.html" %}

{% block subject %}Смена заместителей в {{ department.name }}{% endblock %}

{% block body %}

    В департаменте {{ departments_chain|join:' → ' }} изменился список заместителей.
    {% if old_deputies_list %}
    Было: {% for deputy in old_deputies_list %}
      * {{ deputy.get_full_name }} ([[https://{{ settings.STAFF_HOST }}{% url 'anketa-anketa' yandex_login=deputy.staff.login %} {{ deputy.staff.login }}]]) {% if department %}замещает по [[https://{{ settings.STAFF_HOST }}{% url 'departments-frontend:department' department.url %} {{ department.name }}]]{% endif %}
    {% endfor %}
    {% else %}
    Никого не было.
    {% endif %}

    {% if new_deputies_list %}
    Стало:
    {% for deputy in new_deputies_list %}
      * {{ deputy.get_full_name }} ([[https://{{ settings.STAFF_HOST }}{% url 'anketa-anketa' yandex_login=deputy.login %} {{ deputy.login }}]]) {% if department %}замещает по [[https://{{ settings.STAFF_HOST }}{% url 'departments-frontend:department' department.url %} {{ department.name }}]]{% endif %}
    {% endfor %}
    {% else %}
    Теперь никого нет.
    {% endif %}

{% endblock body %}
