{% extends "base.html" %} {% load i18n %} {% load static %} {% block title %} {{ object.name }} {% endblock %} {% block content %}

{% if LANGUAGE_CODE == 'en' %}

{{ object.name }}

{% else %}

{{ object.nameUA }}

{% endif %}

{% trans "Date:" %} {{ object.date }} {% trans "Tags:" %} {% for i in tags %} {{ i }} {% endfor %}


{% if LANGUAGE_CODE == 'en' %} {{ object.text|safe|linebreaks }} {% else %} {{ object.textUA }} {% endif %}


{% for i in comments.items %}

{{ i.0.author_name }} {% trans "Posted on" %} {{ i.0.time }}

{{ i.0.message|safe }}

{% csrf_token %} {% if not user.is_authenticated %} {{ form.as_p }} {% else %} {{ form.message }} {% endif %}

{% for q in i.1 %}

{{ q.author_name }} Posted on {{ q.time }}

{{ q.message }}

{% endfor %}
{% endfor %}
{% csrf_token %} {% if not user.is_authenticated %} {{ form.as_p }} {% else %} {{ form.message }} {% endif %}
{% endblock %}