{% extends "simpleblog/base.html" %} {% block title %}{{article.title}} | {{base_labels.header}}{% endblock title %} {% block content %}

{{article.title}}

{{article.created_at}} | {% if article.tags.all %} {% for tag in article.tags.all %} {{tag.name}}  {% endfor %} | {% endif %} {{article.get_comments.count}} comments {% if user.is_authenticated %} | edit {% endif %}

{% if article.line_breaks_br %}

{{article.content|safe|linebreaksbr}}

{% else %}

{{article.content|safe}}

{% endif %}
{% if article.gallery.all %}

Galleries

{% for gallery in article.gallery.all %}
{% for img in gallery.image_set.all %} {% endfor %}
{% endfor %}
{% endif %}

Comments

{% if not article.get_comments %}

No comments yet

{% endif %} {% for comment in article.get_comments %}

{{comment.title}}

author: {{comment.author_name}} | {{comment.created_at}}

{{comment.text|linebreaksbr}}

{% endfor %}

Add new comment

{# comment_form.as_p #}
{% csrf_token %}
{% endblock content %}