1 {% extends "admin/change_list.html" %}
2 {% load adminmedia i18n %}
4 {% block title %}{% trans "Comment moderation queue" %}{% endblock %}
8 <style type="text/css" media="screen">
9 p#nocomments { font-size: 200%; text-align: center; border: 1px #ccc dashed; padding: 4em; }
10 td.actions { width: 11em; }
11 td.actions form { display: inline; }
12 td.actions form input.submit { width: 5em; padding: 2px 4px; margin-right: 4px;}
13 td.actions form input.approve { background: green; color: white; }
14 td.actions form input.remove { background: red; color: white; }
19 <h1 id="site-name">{% trans "Comment moderation queue" %}</h1>
22 {% block breadcrumbs %}{% endblock %}
26 <p id="nocomments">{% trans "No comments to moderate" %}.</p>
28 <div id="content-main">
29 <div class="module" id="changelist">
30 <table cellspacing="0">
33 <th>{% trans "Action" %}</th>
34 <th>{% trans "Name" %}</th>
35 <th>{% trans "Comment" %}</th>
36 <th>{% trans "Email" %}</th>
37 <th>{% trans "URL" %}</th>
38 <th>{% trans "Authenticated?" %}</th>
39 <th>{% trans "IP Address" %}</th>
40 <th class="sorted desc">{% trans "Date posted" %}</th>
44 {% for comment in comments %}
45 <tr class="{% cycle 'row1' 'row2' %}">
47 <form action="{% url comments-approve comment.pk %}" method="post">
48 <input type="hidden" name="next" value="{% url comments-moderation-queue %}" />
49 <input class="approve submit" type="submit" name="submit" value="{% trans "Approve" %}" />
51 <form action="{% url comments-delete comment.pk %}" method="post">
52 <input type="hidden" name="next" value="{% url comments-moderation-queue %}" />
53 <input class="remove submit" type="submit" name="submit" value="{% trans "Remove" %}" />
56 <td>{{ comment.name }}</td>
57 <td>{{ comment.comment|truncatewords:"50" }}</td>
58 <td>{{ comment.email }}</td>
59 <td>{{ comment.url }}</td>
62 src="{% admin_media_prefix %}img/admin/icon-{% if comment.user %}yes{% else %}no{% endif %}.gif"
63 alt="{% if comment.user %}{% trans "yes" %}{% else %}{% trans "no" %}{% endif %}"
66 <td>{{ comment.ip_address }}</td>
67 <td>{{ comment.submit_date|date:"F j, P" }}</td>