{% extends 'base.html' %} {% block header %}

{% block title%}{{ post['title'] }}{% endblock %}

by {{ post['username'] }} on {{post['created'].strftime('%Y-%m-%d')}}
{% if g.user['id'] == post['author_id'] %} Edit {% endif %}
{% endblock %} {% block nav %}
  • Back to index {% endblock %} {% block content %}

    {{ post['body'] }}


    {% block add_comment %} Comment {% endblock %}

    {% for comment in comments %}

    {{ comment['username'] }}

    on {{ comment['created'].strftime('%Y-%m-%d') }}
    {% if g.user['id'] == comment['author_id'] %} Edit {% endif %}

    {{ comment['body'] }}

    {% if not loop.last %}
    {% endif %} {% endfor %} {% endblock %}