{# ===== ПРАВАЯ КОЛОНКА: настройки + лента ===== #} {% if user.is_staff or user.is_superuser or can_manage or dept.head.id == user.id %}
Настройки отдела
{% include "employees/_department_controls.html" with dept=dept edit_form=edit_form head_choices=head_choices %}
{% endif %}
Публикации отдела
{% if posts %} {% include "feed/_feed_cards.html" with items=posts %} {% else %}
Публикаций пока нет.
{% endif %}
{# Простая пагинация (если нужно) #} {% if page|default:0 %}
{% if page|add:"-1" %} ← Назад {% endif %}
{% endif %}