depicts/templates/user_page.html

39 lines
958 B
HTML
Raw Normal View History

2019-09-29 11:51:36 +01:00
{% extends "base.html" %}
{% block content %}
<div class="p-2">
<h1>{{ username }}</h1>
<p>This user has added a total of {{ edits.count() }} depicts statements.</p>
<p>{{ painting_count }} paintings have been cataloged.</p>
<table class="table w-auto">
<thead>
<tr>
<th>painting</th>
<th>depicts</th>
<th>when</th>
</tr>
</thead>
<tbody>
{% for edit in edit_list %}
<tr>
2019-10-07 13:25:10 +01:00
<td><a href="{{ url_for('item_page', item_id=edit.painting_id) }}">{{ edit.painting.label }}</a>
({{ edit.painting_qid }})
<a href="https://www.wikidata.org/wiki/{{ edit.painting_qid }}">[wikidata]</a>
</td>
2019-09-29 11:51:36 +01:00
<td><a href="https://www.wikidata.org/wiki/{{ edit.depicts_qid }}">{{ edit.depicts.label }}</a>
({{ edit.depicts_qid }})</td>
<td>{{ edit.timestamp.strftime('%Y %b %d %H:%M') }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}