depicts/templates/property.html

43 lines
952 B
HTML
Raw Normal View History

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
<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>
2019-12-18 18:49:15 +00:00
<p>Total: {{ '{:,d}'.format(pager.total_count) }}</p>
{{ render_pagination(pager) }}
2019-09-13 17:16:37 +01:00
<ul>
{% for hit in hits %}
2019-09-13 17:16:37 +01:00
<li>
<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
{% 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 %}