~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-05-21 07:52:55 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100521075255-ii78v1dyfmyu3uzx
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% extends "admin/change_list.html" %}
2
 
{% load adminmedia i18n %}
3
 
 
4
 
{% block title %}{% trans "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">{% trans "Comment moderation queue" %}</h1>
20
 
{% endblock %}
21
 
 
22
 
{% block breadcrumbs %}{% endblock %}
23
 
 
24
 
{% block content %}
25
 
{% if empty %}
26
 
<p id="nocomments">{% trans "No comments to moderate" %}.</p>
27
 
{% else %}
28
 
<div id="content-main">
29
 
  <div class="module" id="changelist">
30
 
    <table cellspacing="0">
31
 
      <thead>
32
 
        <tr>
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>
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="{% trans "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="{% trans "Remove" %}" />
54
 
            </form>
55
 
          </td>
56
 
          <td>{{ comment.name }}</td>
57
 
          <td>{{ comment.comment|truncatewords:"50" }}</td>
58
 
          <td>{{ comment.email }}</td>
59
 
          <td>{{ comment.url }}</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 %}{% trans "yes" %}{% else %}{% trans "no" %}{% endif %}"
64
 
            />
65
 
          </td>
66
 
          <td>{{ comment.ip_address }}</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 %}