{% if task.status == 'done' %}
✓ {% trans "Выполнено" %}
{% elif task.status == 'in_progress' %}
{% trans "В работе" %}
{% elif task.status == 'cancelled' %}
{% trans "Отменено" %}
{% else %}
{% trans "Ожидает" %}
{% endif %}
{{ task.get_priority_display }}
{% if task.due_date %}
{% trans "срок:" %} {{ task.due_date|date:"d.m.Y" }}{% if task.is_overdue %} — {% trans "просрочено" %}{% endif %}
{% endif %}
{{ task.title }}
{% if can_edit %}
{% trans "Редактировать" %}
{% endif %}
{% if can_delete %}
{% endif %}
{% trans "Описание" %}
{% if task.description %}{{ task.description }}
{% else %}
{% trans "Описание не добавлено" %}
{% endif %}
{% trans "Чек-лист" %}
{{ task.checklist_done }}/{{ task.checklist_total }}
{% for item in checklist %}
{% endfor %}
{% trans "Вложения" %}
{{ attachments|length }}
{% include "partials/task-attachments.html" %}
{% if is_participant and task.status != 'cancelled' %}
{% endif %}
{% if task.completed_at %}
{% endif %}
{% trans "Действия" %}
{% if task.status == 'pending' %} {% endif %} {% if task.status != 'done' %} {% else %} {% endif %} {% if can_edit and task.status != 'done' %} {% endif %}{% trans "Участники" %}
{% for role_label, role_people in role_groups %}
{% if role_people %}
{% endif %}
{% endfor %}
{% if not task.responsible.all and not task.co_executors.all and not task.observers.all %}
{{ role_label }}
{% for emp in role_people %}
{% endfor %}
{{ emp|initials }}
{{ emp.get_full_name }}
{% if emp.post %}{{ emp.post.name }}
{% endif %}
{% trans "Не назначено" %}
{% endif %}
{% trans "Автор" %}
{{ task.creator.get_full_name|default:"—" }}
{% trans "Создано" %}
{{ task.created_at|date:"d.m.Y H:i" }}
{% trans "Выполнено" %}
{{ task.completed_at|date:"d.m.Y H:i" }}