{% extends 'main/layout.html' %}
{% block title %}Deleting comment — {{ request.user.username }}{% endblock %}
{% block content %}
<main class="delete">
<h1>Are you sure you want to delete this comment?</h1>
{{ comment.body_as_html|safe }}
{% if comment.is_author %}
<p>
This is a comment by you as blog author.
</p>
{% else %}
<p>
by
{{ comment.name|default:"<em>(no name)</em>" }}
/ {{ comment.email|default:"<em>(no email)</em>" }}
</p>
{% if comment.is_approved %}
<p>
This is an approved comment.
</p>
{% endif %}
{% endif %}
<form method="post">
{% csrf_token %}
<input type="submit" value="Confirm delete" class="type-danger">
</form>
</main>
{% endblock content %}