2018-08-14 08:55:34 +00:00
|
|
|
{% set ns = namespace() -%}
|
|
|
|
|
|
|
|
{% include 'head.html' with context %}
|
|
|
|
<article>
|
2018-08-14 08:59:12 +00:00
|
|
|
<h1>AAC Results: Rankings{% if year %} for {{ year }}{% endif %}</h1>
|
2018-08-14 08:55:34 +00:00
|
|
|
{% if results -%}
|
|
|
|
{%- set ns.total = 0 -%}
|
|
|
|
{%- if 'count' in results -%}
|
|
|
|
{%- set ns.total = results['count'] -%}
|
|
|
|
{%- endif -%}
|
2018-08-14 08:59:12 +00:00
|
|
|
<table class="narrow">
|
2018-08-14 08:55:34 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
2018-08-14 08:59:12 +00:00
|
|
|
<th>Average Position</th>
|
|
|
|
<!--th>Sum of Race Positions</th-->
|
|
|
|
<th>Races</th>
|
2018-08-14 08:55:34 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{%- for row in results['rows'] -%}
|
|
|
|
<tr>
|
2018-08-14 08:59:12 +00:00
|
|
|
<td><span class="label">Name</span> <span><a href="{{ url_for('person', title=row.person|urlescape, year=year, start=None, show=ns.show) }}">{{ row.person|e }}</a></span></td>
|
|
|
|
<td><span class="label">Average Position</span> <span>{{ row.score|e }}</span></td>
|
|
|
|
<!--td><span class="label">Sum of Race Positions</span> <span>{{ row.positions|e }}</span></td-->
|
|
|
|
<td><span class="label">Number of Races</span> <span>{{ row.races|e }}</span></td>
|
2018-08-14 08:55:34 +00:00
|
|
|
</tr>
|
|
|
|
{%- endfor -%}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{%- endif %}
|
|
|
|
</article>
|
|
|
|
<footer>
|
|
|
|
{% include 'prevnext.html' with context %}
|
|
|
|
</footer>
|
|
|
|
</body>
|
|
|
|
</html>
|