{% load static %}
<div class="progress-bar" style="float:none">
	<div class="percent"><span id='complete_percent'>{{ status_stats.complete_percent|floatformat:0 }}</span>%</div>
	<div class="progress-inner" style="width:{{ status_stats.complete_percent|floatformat:"0" }}%;">
		<div class="progress-failed" style="width:{{ status_stats.failure_percent_in_complete|floatformat:"0" }}%;"></div>
	</div>
</div>
<ul>
	{% for status_name, count in status_stats.iteritems %}
	<li>
		<label>{{ status_name }}</label>
		{% if count != 0 %}
		<span id='{{ status_name }}'>[<a href="javascript:void(0)" class="js-status-subtotal" data-param="{{ status_name }}">{{ count }}</a>]</span>
		{% else %}
		<span id='{{ status_name }}'>[<a>{{ count }}</a>]</span>
		{% endif %}
	</li>
	{% endfor %}
	<li>
		<label>TOTAL</label>
		<span id="TOTAL">[</span><a href="javascript:void(0)" class="js-caserun-total">{{ status_stats.total }}</a><span>]</span>
	</li>
</ul>
<div class="clear"></div>
<ul>
	<li style="background:url({% static "images/btn_bg_report.png" %}) no-repeat; height:25px; line-height:25px; width:57px; padding-left:30px; margin-right:15px;"><a href="{% url "run-report" test_run.run_id %}" title="report of test caserun">Report</a></li>
	<li style="background:url({% static "images/btn_bg_showbug.png" %}) no-repeat; height:25px; line-height:25px; width:133px; padding-left:30px;">
	{% if test_case_run_issues_count == 0 %}
		<span id="total_run_issues_count">No Issues</span>
	{% else %}
		<span id="total_run_issues_count"><a href="{% url "run-report" test_run.run_id %}#issues" title="Show All Issues">Issues [{{ test_case_run_issues_count }}]</a></span>
	{% endif %}
	</li>
</ul>
