2019-12-18 18:49:15 +00:00
|
|
|
{% from "macro.html" import render_pagination %}
|
2019-09-13 17:16:37 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}{{ label }}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="m-3">
|
|
|
|
<h1>{{ self.title() }}</h1>
|
|
|
|
|
2019-09-27 15:35:26 +01:00
|
|
|
<p><a href="{{ url_for('browse_page') }}">back to index</a></p>
|
2019-09-13 17:16:37 +01:00
|
|
|
|
2019-12-18 19:00:26 +00:00
|
|
|
{#
|
2019-09-14 13:26:16 +01:00
|
|
|
<p>Sort order:
|
|
|
|
{% if order == 'name' %}
|
2019-09-16 08:59:53 +01:00
|
|
|
<b>name</b> or <a href="{{ set_url_args(sort='count') }}">count</a>
|
2019-09-14 13:26:16 +01:00
|
|
|
{% else %}
|
2019-09-16 08:59:53 +01:00
|
|
|
<a href="{{ set_url_args(sort='name') }}">name</a> or <b>count</b>
|
2019-09-14 13:26:16 +01:00
|
|
|
{% endif %}
|
|
|
|
</p>
|
2019-12-18 19:00:26 +00:00
|
|
|
#}
|
2019-09-14 13:26:16 +01:00
|
|
|
|
2019-12-18 18:49:15 +00:00
|
|
|
<p>Total: {{ '{:,d}'.format(pager.total_count) }}</p>
|
|
|
|
|
|
|
|
{{ render_pagination(pager) }}
|
2019-12-18 15:06:24 +00:00
|
|
|
|
2019-09-13 17:16:37 +01:00
|
|
|
<ul>
|
2019-12-18 15:06:24 +00:00
|
|
|
{% for hit in hits %}
|
2019-09-13 17:16:37 +01:00
|
|
|
<li>
|
2019-12-18 15:06:24 +00:00
|
|
|
<a href="{{ url_for('browse_page', **{pid: hit.qid}) }}">{{ hit.label }}</a>
|
|
|
|
|
|
|
|
({{ '{:,d}'.format(hit.count) }} artworks)
|
2019-09-13 17:16:37 +01:00
|
|
|
|
2019-12-18 15:06:24 +00:00
|
|
|
{% if not hit.label %}
|
|
|
|
<a href="https://wikidata.org/wiki/{{ hit.qid }}">view in Wikidata</a>
|
2019-09-13 17:16:37 +01:00
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2019-12-18 18:49:15 +00:00
|
|
|
|
|
|
|
{{ render_pagination(pager) }}
|
|
|
|
|
2019-09-13 17:16:37 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|