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

Article checkout


{% endblock %} {% block content %}
Title: {{ article.title }}
Tags:
    {% for tag in article.tags.all %}
  1. {{ tag.name }}
  2. {% endfor %}
Text: {{ article.text }}
Status: {{ article.status }}
By: {{ article.author }}
Created: {{ article.created_at }}
Updated: {{ article.updated_at }}

{% if perms.web.change_article or article.author == request.user %} Edit {% endif %}
{% csrf_token %}

Comments:

{% csrf_token %} {% include 'partial/form.html' with button_text='add' %} {# #} {# #}
{% for comment in comments %}
{{ comment.author }}
{% if perms.web.change_comment or request.user == comment.author %} {% endif %}
{% csrf_token %}

{{ comment.text }}

{{ comment.created_at }}
{% empty %}

No comments yet.

{% endfor %}
{% endblock %}