35 lines
951 B
HTML
35 lines
951 B
HTML
|
{% set ns = namespace() -%}
|
||
|
|
||
|
{% include 'head.html' with context %}
|
||
|
<article>
|
||
|
<h1>AAC Statistics: {% if year %} {{ year }}{% endif %}{% if title %} {{ title | title }}{% endif %}</h1>
|
||
|
{% if results -%}
|
||
|
{%- set ns.total = 0 -%}
|
||
|
{%- if 'count' in results -%}
|
||
|
{%- set ns.total = results['count'] -%}
|
||
|
{%- endif -%}
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Licence</th>
|
||
|
<th>Name</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{%- for row in results['rows'] -%}
|
||
|
<tr>
|
||
|
<td><a href="{{ url_for('licence', title=row.licence, year=row.date|year, start=None, limit=ns.limit) }}">{{ row.licence }}</td>
|
||
|
<td><a href="{{ url_for('person', title=row.person, year=year, start=None, limit=ns.limit) }}">{{ row.person }}</a></td>
|
||
|
<td>{{ row.date | year }}</a></td>
|
||
|
</tr>
|
||
|
{%- endfor -%}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
{%- endif %}
|
||
|
</article>
|
||
|
<footer>
|
||
|
{% include 'prevnext.html' with context %}
|
||
|
</footer>
|
||
|
</body>
|
||
|
</html>
|