{% spaceless %}
<table class="list" id="id_table_cases" cellspacing="0" cellspan="0">
	<thead>
		<tr>
			<th class="widthID">Case Run ID</th>
			<th class="widthID">Case ID</th>
			<th>Summary</th>
			<th width="80">Tester</th>
			<th width="80">Assignee</th>
			<th width="150">Automated </th>
			<th width="100">Category</th>
			<th width="60">Priority</th>
			{#<th width="40">Issues</th>#}
			<th width="50" style='text-align:center'>Status</th>
			<th width="40">Sort</th>
		</tr>
	</thead>
	<tbody>
		{% for test_case_run, status_name, priority_value, tester, assignee in test_case_runs %}
		<tr class="{% cycle 'odd' 'even' %} {% if assignee.0 == user.pk %}mine{% endif %}">
			<td>
				<a target="_blank" href="{% url "run-get" test_case_run.run.pk %}#caserun_{{ test_case_run.pk }}">#{{ test_case_run.pk }}</a>
			</td>
			<td "{{ test_case_run.case_id }}" class="case_title expandable">
				<a href="{% url "case-get" test_case_run.case_id %}?from_plan={{ test_case_run.run.plan_id }}">{{ test_case_run.case_id }}</a>
			</td>
			<td>
				<a id="link_{{ forloop.counter }}" target="_blank" href="{% url "run-get" test_case_run.run.pk %}?#caserun_{{ test_case_run.pk }}" title="Expand test case">{{ test_case_run.case.summary }}</a>
			</td>
			<td>
				{% if tester.1 %}
				<a target="_blank" href="{% url "user-profile" tester.1 %}" class="link_tested_by">{{ tester.1 }}</a>
				{% else %}None{% endif %}
			</td>
			<td>
				{% if assignee.1 %}
				<a href="{% url "user-profile" assignee.1 %}" class="link_assignee">{{ assignee.1 }}</a>
				{% else %}None{% endif %}
			</td>
			<td>{{ test_case_run.case.get_is_automated_status }}</td>
			<td>{{ test_case_run.case.category }}</td>
			<td>{{ priority_value }}</td>
			{#<td><span id="{{ test_case_run.pk }}_case_issues_count" {% if test_case_run.num_bug %}class="have_issue"{% endif %}>{{ test_case_run.num_bug }}</span></td>#}
			<td class="expandable center">
				<img border="0" alt="" class="icon_status btn_{{ status_name.lower }}" />
			</td>
			<td>
				<span class="mark">{{ test_case_run.sortkey }}</span>
			</td>
		</tr>
		{% empty %}
		<tr>
			<td colspan="10" align="center">No case run found</td>
		</tr>
		{% endfor %}
	</tbody>
</table>
{% endspaceless %}
