{% extends 'base.html' %} {% block title %} Blogpost{% endblock title %} {% block body %} {% load humanize %} {% load extras %}

{{post.title}}

{{post.timeStamp}} by {{post.author}}

{{post.content|safe}}


Comments ({{comments.count}})

{% if user.is_authenticated %}
{% csrf_token %}
{% else %} Please login to post a comment {% endif %}
{% for comment in comments %}
user
{{comment.user.username}} {{comment.timestamp| naturaltime}}
{{comment.comment}}
{% if user.is_authenticated %}
{% csrf_token %}
{% else %} {% endif %}
{% for reply in replyDict|get_val:comment.sno %}
user
{{reply.user.username}} {{reply.timestamp| naturaltime}}
{{reply.comment}}

{% endfor %}
{% endfor %}
{% endblock %}