2018-08-14 08:59:12 +00:00
|
|
|
{% set ns = namespace() -%}
|
|
|
|
|
|
|
|
{% include 'head.html' with context %}
|
|
|
|
<article>
|
|
|
|
<h1>AAC Results: Races {% if year %} in {{ year }}{% endif %}</h1>
|
|
|
|
{% if results -%}
|
|
|
|
{%- set ns.total = 0 -%}
|
|
|
|
{%- if 'count' in results -%}
|
|
|
|
{%- set ns.total = results['count'] -%}
|
|
|
|
{%- endif -%}
|
|
|
|
<table class="narrow">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Race</th>
|
|
|
|
<th>Date</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{%- for row in results['rows'] -%}
|
|
|
|
<tr>
|
2018-08-14 09:01:26 +00:00
|
|
|
<td><span class="label">Race</span> <span><a href="{{ url_for('race', title=row.event|trim|urlescape, year=row.date|year, start=None, show=ns.show) }}">{{ row.event|trim|e }}</a></span></td>
|
2018-08-14 08:59:12 +00:00
|
|
|
<td><span class="label">Date</span> <span>{{ row.date | cleandate }}</span></td>
|
|
|
|
</tr>
|
|
|
|
{%- endfor -%}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{%- endif %}
|
|
|
|
</article>
|
|
|
|
<footer>
|
|
|
|
{% include 'prevnext.html' with context %}
|
|
|
|
</footer>
|
|
|
|
</body>
|
|
|
|
</html>
|