{% extends "base.html" %} {% load urlify %} {% load crispy_forms_tags %} {% block head_title %} {{ instance.title }} | {{ block.super }} {% endblock head_title %} {% block post_detail_link %}
  • {{ instance.title }}
  • {% endblock %} {% block content %}
    {% if instance.image %} {% endif %}

    {{ title }} {% if instance.draft %}Draft {% endif %}{{ instance.publish }}

    Read time: {% if instance.read_time <= 1 %} < 1 Minute {% else %}{{ instance.read_time }} minutes {% endif %}

    {% if instance.user.get_full_name %}

    Author: {{ instance.user.get_full_name }}

    {% endif %}


    {{ instance.get_markdown }}


    Comments

    {% if request.user.is_authenticated %}
    {% csrf_token %} {{ comment_form|crispy }}
    {% else %}

    You must login to comment

    {% endif %}
    {% for comment in comments %}

    {{ comment.content }}

    via {{ comment.user }} | {{ comment.timestamp|timesince }} ago | {% if comment.children.count > 0 %}{{ comment.children.count }} Comment{% if comment.children.count > 1 %}s{% endif %} | {% endif %} Reply | Thread
    {% for child_comment in comment.children %}

    {{ child_comment.content }}

    via {{ child_comment.user }} | {{ child_comment.timestamp|timesince }} ago
    {% endfor %} {% if request.user.is_authenticated %}
    {% csrf_token %} {{ comment_form|crispy }}
    {% else %}

    You must login to comment

    {% endif %}

    {% endfor %}
    {% endblock content %}