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>
|
|
|
|
|
|
|
|
<p><a href="{{ url_for('index') }}">back to index</a></p>
|
|
|
|
|
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-09-13 17:16:37 +01:00
|
|
|
<ul>
|
|
|
|
{% for row in rows if '/' in row.object.value %}
|
|
|
|
{% set qid = row.object.value.rpartition('/')[2] %}
|
|
|
|
{% set row_label = row.objectLabel.value if 'objectLabel' in row else '[ label missing ]' %}
|
|
|
|
<li>
|
2019-09-16 08:59:53 +01:00
|
|
|
<a href="{{ url_for('browse_page', **{pid: qid}) }}">{{ row_label }}</a>
|
2019-09-13 17:16:37 +01:00
|
|
|
{% if 'objectDescription' in row %}
|
|
|
|
— {{ row.objectDescription.value }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
({{ '{:,d}'.format(row.count.value | int) }} paintings)
|
|
|
|
{% if 'objectLabel' not in row %}
|
|
|
|
<a href="https://wikidata.org/wiki/{{ qid }}">view in Wikidata</a>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|