depicts/templates/property.html
Edward Betts 036a4be5ed Expand focus from paintings to more artworks
Replace all references to 'painting' with 'artwork'
2019-11-25 11:49:34 +00:00

39 lines
1 KiB
HTML

{% extends "base.html" %}
{% block title %}{{ label }}{% endblock %}
{% block content %}
<div class="m-3">
<h1>{{ self.title() }}</h1>
<p><a href="{{ url_for('browse_page') }}">back to index</a></p>
<p>Sort order:
{% if order == 'name' %}
<b>name</b> or <a href="{{ set_url_args(sort='count') }}">count</a>
{% else %}
<a href="{{ set_url_args(sort='name') }}">name</a> or <b>count</b>
{% endif %}
</p>
<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>
<a href="{{ url_for('browse_page', **{pid: qid}) }}">{{ row_label }}</a>
{% if 'objectDescription' in row %}
&mdash; {{ row.objectDescription.value }}
{% endif %}
({{ '{:,d}'.format(row.count.value | int) }} artworks)
{% if 'objectLabel' not in row %}
<a href="https://wikidata.org/wiki/{{ qid }}">view in Wikidata</a>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% endblock %}