~linuxgoose/bocpress

ref: a3deda29c8a49af8918d704283312fd7afbc7dfd bocpress/main/templates/main/comment_list.html -rw-r--r-- 1023 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
34
35
{% extends 'main/layout.html' %}

{% block title %}Comments pending — {{ request.user.username }}{% endblock %}

{% block content %}
<main>
    <h1>Comments pending ({{ comment_list|length }})</h1>

    <ul>
        {% for comment in comment_list %}
        <li>
            Published at {{ comment.created_at }}

            <br>On <a href="{{ comment.post.get_absolute_url }}">{{ comment.post }}</a>

            <br>By {{ comment.name|default:"<em>(no name)</em>" }}
            / {{ comment.email|default:"<em>(no email)</em>" }}

            <br>Comment:
            {{ comment.body_as_html|safe }}

            <a href="{% url 'comment_approve' comment.post.slug comment.id %}" class="type-approve">Approve</a>
            |
            <a href="{% url 'comment_delete' comment.post.slug comment.id %}" class="type-delete">
                Delete
            </a>
            <br>&nbsp;
        </li>
        {% empty %}
        <li>(no comments)</li>
        {% endfor %}
    </ol>

</main>
{% endblock content %}