{% extends "blog/base.html" %} {% load blog_tags %} {% block title %}{{ post.title }}{% endblock %} {% block content %}

{{ post.title }}

Opublikowany {{ post.publish }} przez {{ post.author }}

{{ post.body|markdown }}

Podobne posty

{% for post in similar_posts %}

{{ post.title }}

{% empty %} Nie ma podobnych postów. {% endfor %} {% with comments.count as total_comments %}

{{ total_comments }} komentarz{{ total_comments|pluralize:"y" }}

{% endwith %} {% for comment in comments %}

Komentarz {{ forloop.counter }} dodany przez {{ comment.name }} {{ comment.created }}

{{ comment.body|linebreaks }}
{% empty %}

Nie ma jeszcze żadnych komentarzy.

{% endfor %} {% if new_comment %}

Komentarz został dodany.

{% else %}

Dodaj nowy komentarz

{{ comment_form.as_p }} {% csrf_token %}

{% endif %} {% endblock %}