{% extends 'base.html' %}

{% block body_class %}{% endblock %}

{% block title %}Uploaded photos for review{% endblock %}

{% block hero %}
  <h1>Uploaded photos for review</h1>
{% endblock %}

{% block content %}

  {% if object_list %}
    <table>
      <thead>
        <tr>
          <th>Date uploaded</th>
          <th>Uploading user</th>
          <th>Candidate ID</th>
          <th>Action</th>
        </tr>
      </thead>
      <tbody>
      {% for queued_image in object_list %}
        <tr>
          <td>{{ queued_image.created }}</td>
          <td>{{ queued_image.user.username }}</td>
          <td>{{ queued_image.popit_person_id }}</td>
          <td><a href="{% url 'photo-review' queued_image_id=queued_image.id %}">Review</a></td>
        </tr>
      {% endfor %}
      <tbody>
    </table>
  {% endif %}

{% endblock %}

{% extends 'base.html' %}

{% block body_class %}{% endblock %}

{% block title %}Uploaded photos for review{% endblock %}

{% block hero %}
  <h1>Uploaded photos for review</h1>
{% endblock %}

{% block content %}

  {% if object_list %}
    <table>
      <thead>
        <tr>
          <th>Date uploaded</th>
          <th>Uploading user</th>
          <th>Candidate ID</th>
          <th>Action</th>
        </tr>
      </thead>
      <tbody>
      {% for queued_image in object_list %}
        <tr>
          <td>{{ queued_image.created }}</td>
          <td>{{ queued_image.user.username }}</td>
          <td>{{ queued_image.popit_person_id }}</td>
          <td><a href="{% url 'photo-review' queued_image_id=queued_image.id %}">Review</a></td>
        </tr>
      {% endfor %}
      <tbody>
    </table>
  {% else %}
    <p><strong>Congratulations!</strong> There are no more photos to review.</p>
  {% endif %}

{% endblock %}

Put back the 'Congratulations' message for an empty photo review queue
Put back the 'Congratulations' message for an empty photo review queue
