{# Параметры: post, feed_scope, department #}
{% if post.image %}
{{ post.title }}
{% endif %}
{{ post.title }}
{# Права на пин #} {% if (post.type == 'company' and user.is_staff) or (post.type == 'department' and department and department.head_id == user.id) %} {% if post.pinned %}Открепить{% else %}Закрепить{% endif %} {% endif %}
{% if post.pinned %} Закреплено {% endif %}

{{ post.body|truncatewords:32 }}

Автор: {{ post.author.get_full_name|default:post.author.username }} • {{ post.created_at|date:"d.m.Y H:i" }} {% if post.type == 'department' and post.department %} • {{ post.department.name }}{% endif %}
Подробнее
{% if post.attachment %} {% endif %}