{% load common_tags %} {# Карточка поста в ленте: полный вывод. Контекст: post, pinned #}
{% if post.is_pinned %} 📌 Закріплено {% endif %} {% if post.is_important %}Важливо{% endif %} {{ post.get_category_display }}
{{ post.created_at|date:"d.m.Y H:i" }}

{{ post.title }}

{{ post.body|safe }}
{{ post.author|initials }}
{{ post.author.get_full_name|default:"—" }}
{{ post.num_comments|default:0 }} {% if post.can_edit %} Редагувати {% endif %} {% if post.can_delete %}
{% csrf_token %}
{% endif %}