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

Article

{% for message in messages %}
{{ message }}
{% endfor %}

{{ article.title }}

{{ article.text }}

By: {{ article.author }}

Tags

{% if perms.webapp.change_article or article.author == user %} Update {% endif %} {% if perms.webapp.delete_article or article.author == user %}
{% csrf_token %}
{% endif %}

Comments

{% url 'comments_add' article_id=article.id as comments_action_url %} {% include 'partial/form.html' with form=comments_form request_method='post' action_url=comments_action_url %}
{% for comment in comments %}
{{ comment.author }}
Update
{% csrf_token %}

{{ comment.text }}

{% empty %}
No comments yet.
{% endfor %} {% endblock %}