{% extends "base.html" %}

{% block content %}
<table>
<thead><tr>
	<th>Document</th>
	<th>Status</th>
	<th>Date Uploaded</th
	<th>Date Stored</th>
	<th>Date Queued</th>
	<th>Date Processing Started</th>
	<th>Date Processing Finished</th>
	<th>Date of Error</th>
</tr>
</thead>
<tbody>
{% for pdf in pdfs %}<tr>
	<td><a href="{{ pdf.get_detail_url }}">{{ pdf.name }}</a></td>
    <td>{{ pdf.get_status_display }}</td>
	<td>{% if pdf.date_uploaded %}{{ pdf.date_uploaded|date:"M j, H:i" }}{% endif %}</td>
	<td>{% if pdf.date_stored %}{{ pdf.date_stored|date:"M j, H:i"  }}{% endif %}</td>
	<td>{% if pdf.date_queued %}{{ pdf.date_queued|date:"M j, H:i"  }}{% endif %}</td>
	<td>{% if pdf.date_process_start %}{{ pdf.date_process_start|date:"M j, H:i"  }}{% endif %}</td>
	<td>{% if pdf.date_process_end %}{{ pdf.date_process_end|date:"M j, H:i"  }}{% endif %}</td>
	<td>{% if pdf.date_exception %}{{ pdf.date_exception|date:"M j, H:i"  }}{% endif %}</td>
</tr>{% endfor %}
</tbody>
</table>

{% endblock %}