{% extends 'base.html' %} {% block content %}
{{ post.author.username }} {{ post.created_at|date:"d F Y - h:i A" }}
{% if user == post.author %} {% endif %}

{{ post.title }}

{{ post.title }}
{{ post.content|linebreaks }}
التعليقات ({{ post.comments.count }})
{% for comment in post.comments.all %}
{{ comment.author.username|slice:":1"|upper }}
{{ comment.author.username }}
{{ comment.content|linebreaksbr }}
{% empty %}

لا توجد تعليقات حتى الآن. كن أول المشاركين!

{% endfor %}
{% if user.is_authenticated %}

أضف تعليقك

{% csrf_token %} {{ comment_form.content }}
{% else %}
يجب عليك تسجيل الدخول لتتمكن من إضافة تعليق.
{% endif %}
{% endblock %}