{% extends 'base.html' %} {% load static %} {% block custom-tags %} {% endblock %} {% block content %} {% if request.user.is_authenticated and request.user.id == post.user.id %} Delete Post Edit Post {% endif %}
{{ post.user }} | {{ post.created }}
{{ post.body }}
This post has {{ total }} comment{{ total|pluralize }}
{% endwith %} {% endif %}Only logged in user can send comments
{% endif %}{{ comment.user }}
{{ comment.body }}
{% if request.user.is_authenticated %}You have to login to send reply
{% endif %} {% for reply in comment.rcomment.all %}{{ reply.user }}
{{ reply.body }}
There is no comment
{% endfor %} {% endblock %}