{% extends "base.html" %}
{% load i18n %}
{% load static %}

{% block title %}{% trans "News Moderation Queue" %}{% endblock %}

{% block content %}
  <div class="py-0 px-3 mb-3 md:py-6 md:px-0">
    <div class="md:w-full">
      <h1 class="text-4xl">{% translate "Latest news pending moderation" %}</h1>

      <div class="divide-y divide-gray-300">
        {% for entry in entry_list %}
        <div class="flex py-4">
          <div class="py-5 w-1/6">
            <h5>{{ entry.publish_at|date:"M jS, Y" }}</h5>
          </div>
          <div class="w-5/6 text-xl">
            <p>
              <a href="{{ entry.get_absolute_url }}?next={{ request.path|urlencode }}">{{ entry.title }}</a>
              {% blocktrans with author_email=entry.author.email %}
              by {{ author_email }}
              {% endblocktrans %}
            </p>
            <div class="space-x-8 uppercase">
            </div>
          </div>
        </div>
        {% empty %}
        <p>{% translate "No news pending moderation." %}</p>
        {% endfor %}
      </div>
    </div>
  </div>
{% endblock %}
