{% extends 'weblog/weblog.html' %} {% load i18n %} {% block title_block %}{% if post_translation %}{{ post_translation.title }}{% else %}{{ post.title }}{% endif %}{% endblock %} {% block blog_content_block %}

{% if post_translation %}{{ post_translation.title }}{% else %}{{ post.title }}{% endif %}

{% blocktrans with publish_date=post.publish_date %}Published on {{ publish_date }}{% endblocktrans %}{% if post_author %}{% blocktrans with author=post_author context 'Written by (Author)' %}, by {% endblocktrans %}{% endif %}

{% if post_languages %}
{% endif %}
{% if post_translation %} {{ post_translation.content|safe }} {% else %} {{ post.content|safe }} {% endif %} {% if post_categories %}

{% trans 'Categories' context 'Post categories' %}: {% for post_category in post_categories %} {{ post_category.name }} {% endfor %}

{% endif %} {% if enable_comments %}
{% if user.is_authenticated or allow_anon_comments %}

{% trans 'Leave a comment' %}

{% csrf_token %}
{{ comment_form }}
{% else %}

{% trans 'To leave a comment you need to sign in' %}

{% endif %} {% if comments %} {% if comment_submission %} {% if comment_submission_error %}
× {{ comment_submission_error }}
{% else %}
× {% trans 'Comment submited successfully' %}
{% endif %} {% endif %} {% for comment in comments %}

{% if comment.author %}{{ comment.author.get_username }}{% else %}{% trans 'Anonymous' context 'Unauthenticated comment poster' %}{% endif %}

{{ comment.content }}

{% endfor %} {% else %}

{% trans 'Nobody has left a comment on this post yet' %}

{% endif %} {% endif %}
{% endblock %}