~linuxgoose/bocpress

ref: a3deda29c8a49af8918d704283312fd7afbc7dfd bocpress/main/templates/main/comment_confirm_delete.html -rw-r--r-- 796 bytes
a3deda29Jordan Robinson fix is_published check not executing right 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% 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 %}