AACResults/templates/list-runners.html

34 lines
916 B
HTML
Raw Permalink Normal View History

2018-08-14 08:55:34 +00:00
{% set ns = namespace() -%}
{% include 'head.html' with context %}
<article>
2018-08-14 09:05:57 +00:00
<h1>AAC Results: Top Athletes by Race Mileage{% if year %} in {{ 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 -%}
<table class="narrow">
2018-08-14 08:55:34 +00:00
<thead>
<tr>
<th>Name</th>
<th>Distance</th>
</tr>
</thead>
<tbody>
{%- for row in results['rows'] -%}
<tr>
<td><span class="label">Name</span> <span><a href="{{ url_for('person', title=row.person|trim|urlescape, year=year, start=None, show=ns.show) }}">{{ row.person|trim|e }}</a></span></td>
<td><span class="label">Distance</span> <span>{{ row.total|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>