<div id="submission_list">
{% if submissions %}
<ul>
    {% for sub in submissions %}
    <li class="submission">
        <a href="{% url 'submission_status' subid=sub.id %}">Submission {{ sub.id }}</a> 
        <span class="timestamp">({{sub.submitted_on|date:"Y-m-d H:i"}})</span>
        <table class="submission_job_list">
            {% for user_image in sub.user_images.all %}
            {% for job in user_image.jobs.all %}
            <tr>
                <td class="image_id">
                    <a hr