{% extends 'base.html' %} {% load jformat i18n timesince post %} {% block title %}پست {{ post.user.username }}{% endblock title %} {% block content %} {% with request.user as client %} {% with post.users_like as likers %}
{{ post.description|linebreaks|render }}

{% with date=post.created|jformat:"%d %B %Y" %} {% for word in date|split_string %} {% translate word %} {% endfor %} {% endwith %}
تصویر پست {% if post.user == client %} {% endif %}
{% if post.related_posts %}

پست های مشابه

{% include 'post/add-posts.html' with posts=post.related_posts.all %}
{% endif %}
{{ form.as_p }}
{% csrf_token %}

{% for comment in post.comments.all %} {% if comment.is_reply == False %}

{{ comment.user }}

{{ comment.created|timesince }} پیش

{{ comment.body }}

{% csrf_token %} {{ form.body.errors }} {{ form.body }}
{% with comment.replies.all as replies %} {% for reply in replies %}

{{ reply.user }}

{{ reply.created|timesince }} پیش

{{ reply.body }}

{% endfor %} {% endwith %}
{% endif %} {% endfor %}
{% endwith %} {% endwith %} {% endblock content %} {% block script %} {% endblock script %}