1
{% extends "admin/change_list.html" %}
4
{% block title %}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">Comment moderation queue</h1>
22
{% block breadcrumbs %}{% endblock %}
26
<p id="nocomments">No comments to moderate.</div>
28
<div id="content-main">
29
<div class="module" id="changelist">
30
<table cellspacing="0">
38
<th>Authenticated?</th>
40
<th class="sorted desc">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="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="Remove">
56
<td>{{ comment.name|escape }}</td>
57
<td>{{ comment.comment|truncatewords:"50"|escape }}</td>
58
<td>{{ comment.email|escape }}</td>
59
<td>{{ comment.url|escape }}</td>
62
src="{% admin_media_prefix %}img/admin/icon-{% if comment.user %}yes{% else %}no{% endif %}.gif"
63
alt="{% if comment.user %}yes{% else %}no{% endif %}"
66
<td>{{ comment.ip_address|escape }}</td>
67
<td>{{ comment.submit_date|date:"F j, P" }}</td>