{% load lookup %}

{% for task in tasks %}
	<tr class=task_table_row>
        <td>
            <a class=jobs_button id="jobs_button__{{ task|lookup:'key' }}" href="#"><i class="fa fa-plus-square text-success" title="Показать задачи"></i></a>
        </td>
        <td><img class=task_status_image style="height: 21px;" src="{{ task|lookup:'status_img' }}" title="{{ task|lookup:'status' }}"/></td>
        <td><a style="white-space: nowrap;" href="/{{ task|lookup:'key' }}">{{ task|lookup:'key' }}</a></td>
        <td><a href="/{{ task|lookup:'key' }}">{{ task|lookup:'name' }}</a></td>
        <td><a class="person" style="text-align: right;">{{ task|lookup:'createdBy' }}</a></td>
        <td>&rarr;</td>
        <td><a class="person">{{ task|lookup:'assignee' }}</a></td>
        <td class=task_info_dates>{{ task|lookup:'createdAt'|date:'Y-m-d H:i' }} </td>
	</tr>
    <tr class="task_table_jobs_row">
        <td colspan="8" style="border: none; padding-top: 0"><div style="padding: 5px 0;" class=jobs_popup id="jobs_popup__{{ task|lookup:'key' }}"><i class="krutilka fa fa-circle-o-notch fa-spin" aria-hidden="true"></i></div></td>
    </tr>
    <span class="pageNumber" style="display: none;">{{ page }}</span>
    <span class="stopIteration" style="display: none;">{{ stop_iteration }}</span>
{% endfor %}
