{%include ../../templates/header.html %}

<table class="table">
	<tr>
		<th>Abgabe</th>
		<th>Blatt</th>
		<th>Student</th>
		<th>Abgabezeitpunkt</th>
		<th>Korrektor</th>
		<th>Status</th>
	</tr>
{% for submission in submissions %}
	<tr>
		<td><a href="/submission/{{ submission["submission"].id }}">{{ submission["submission"].id }}</a></td>
		<td><a href="/sheet/{{ submission["submission"].sheet_id }}">{{ submission["submission"].sheet_id }}</a></td>
		<td>
			<a href="/student/{{ submission["submission"].student_id }}">
				{{ template_helper.format_student(submission["student"]) }}
			</a>
		</td>
		<td>{{ submission["readable_time"] }}</td>
		<td>
			{% if submission["assignment"].grader %}
				{{ submission["assignment"].grader }}
			{% else %}
				<em>Nicht zugewiesen</em>
			{% end %}
		</td>
		<td><a href="/submission/{{ submission["submission"].id }}">{{ submission["status"] }}</a></td>
	</tr>
{% end %}
</table>

<p><a href="/submissions/all">Alle Abgaben</a></p>


{%include ../../templates/footer.html %}

{%include ../../templates/header.html %}

<table class="table">
	<tr>
		<th>Abgabe</th>
		<th>Blatt</th>
		<th>Student</th>
		<th>Abgabezeitpunkt</th>
		<th>Korrektor</th>
		<th>Status</th>
	</tr>
{% for submission in submissions %}
	<tr>
		<td><a href="/submission/{{ submission["submission"].id }}">{{ submission["submission"].id }}</a></td>
		<td><a href="/sheet/{{ submission["submission"].sheet_id }}">{{ submission["submission"].sheet_id }}</a></td>
		<td>
			<a href="/student/{{ submission["submission"].student_id }}">
				{{ template_helper.format_student(submission["student"]) }}
			</a>
		</td>
		<td>{{ submission["readable_time"] }}</td>
		<td>
			{% if submission["assignment"] %}
				{{ submission["assignment"].grader }}
			{% else %}
				<em>Nicht zugewiesen</em>
			{% end %}
		</td>
		<td><a href="/submission/{{ submission["submission"].id }}">{{ submission["status"] }}</a></td>
	</tr>
{% end %}
</table>

<p><a href="/submissions/all">Alle Abgaben</a></p>


{%include ../../templates/footer.html %}

Fix exception thrown if a submission has no assigned grader
Fix exception thrown if a submission has no assigned grader
