{{ post.body }}
{% extends 'blog/base.html' %} {% load static %} {% block title %} {{ post.id }}-info {% endblock %} {% block body %}
- Category:{{ post.category.title }} -
{% else %}- Non-category post -
{% endif %}{{ post.body }}
{{ post.date }} ~ {{ post.time }} : {{ post.id }}
{% if user.is_authenticated %} {% if user == post.author %} Редактировать пост Удалить пост {% endif %}Likes: {{ object.likes.count }}
Liked by: {% for like in object.likes.all %} {{ like.user.username }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endblock %}