~ubuntu-branches/ubuntu/jaunty/python-django/jaunty

« back to all changes in this revision

Viewing changes to django/contrib/comments/templates/comments/moderation_queue.html

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant, Eddy Mulyono
  • Date: 2008-09-16 12:18:47 UTC
  • mfrom: (1.1.5 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080916121847-mg225rg5mnsdqzr0
Tags: 1.0-1ubuntu1
* Merge from Debian (LP: #264191), remaining changes:
  - Run test suite on build.

[Eddy Mulyono]
* Update patch to workaround network test case failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "admin/change_list.html" %}
 
2
{% load adminmedia %}
 
3
 
 
4
{% block title %}Comment moderation queue{% endblock %}
 
5
 
 
6
{% block extrahead %}
 
7
  {{ block.super }}
 
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; }
 
15
  </style>
 
16
{% endblock %}
 
17
 
 
18
{% block branding %}
 
19
<h1 id="site-name">Comment moderation queue</h1>
 
20
{% endblock %}
 
21
 
 
22
{% block breadcrumbs %}{% endblock %}
 
23
 
 
24
{% block content %}
 
25
{% if empty %}
 
26
  <p id="nocomments">No comments to moderate.</div>
 
27
{% else %}
 
28
<div id="content-main">
 
29
  <div class="module" id="changelist">
 
30
    <table cellspacing="0">
 
31
      <thead>
 
32
        <tr>
 
33
          <th>Action</th>
 
34
          <th>Name</th>
 
35
          <th>Comment</th>
 
36
          <th>Email</th>
 
37
          <th>URL</th>
 
38
          <th>Authenticated?</th>
 
39
          <th>IP Address</th>
 
40
          <th class="sorted desc">Date posted</th>
 
41
        </tr>
 
42
    </thead>
 
43
    <tbody>
 
44
      {% for comment in comments %}
 
45
        <tr class="{% cycle 'row1' 'row2' %}">
 
46
          <td class="actions">
 
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">
 
50
            </form>
 
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">
 
54
            </form>
 
55
          </td>
 
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>
 
60
          <td>
 
61
            <img
 
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 %}"
 
64
            />
 
65
          </td>
 
66
          <td>{{ comment.ip_address|escape }}</td>
 
67
          <td>{{ comment.submit_date|date:"F j, P" }}</td>
 
68
        </tr>
 
69
      {% endfor %}
 
70
    </tbody>
 
71
    </table>
 
72
  </div>
 
73
</div>
 
74
{% endif %}
 
75
{% endblock %}