depicts/templates/list_edits.html

41 lines
1.1 KiB
HTML
Raw Normal View History

2019-09-29 09:47:55 +01:00
{% extends "base.html" %}
{% block content %}
<div class="p-2">
2019-09-29 11:23:07 +01:00
<p>This tool has been used to add a total of {{ edits.count() }} depicts statements.</p>
<p>{{ user_count }} users have tried this tool.</p>
<p>{{ item_count }} artworks have been cataloged.</p>
2019-09-29 09:47:55 +01:00
<table class="table w-auto">
<thead>
<tr>
<th>username</th>
<th>artwork</th>
2019-09-29 09:47:55 +01:00
<th>depicts</th>
2019-09-29 09:56:14 +01:00
<th>when</th>
2019-09-29 09:47:55 +01:00
</tr>
</thead>
<tbody>
2019-09-29 09:56:14 +01:00
{% for edit in edit_list %}
2019-09-29 09:47:55 +01:00
<tr>
2019-09-29 11:51:36 +01:00
<td><a href="{{ url_for('user_page', username=edit.username.replace('_', ' ')) }}">{{ edit.username }}</a></td>
<td><a href="{{ url_for('item_page', item_id=edit.artwork_id) }}">{{ edit.artwork.label }}</a>
({{ edit.artwork_qid }})
<a href="https://www.wikidata.org/wiki/{{ edit.artwork_qid }}">[wikidata]</a>
2019-10-07 13:25:10 +01:00
</td>
2019-09-29 11:14:05 +01:00
<td><a href="https://www.wikidata.org/wiki/{{ edit.depicts_qid }}">{{ edit.depicts.label }}</a>
({{ edit.depicts_qid }})</td>
2019-09-29 11:23:07 +01:00
<td>{{ edit.timestamp.strftime('%Y %b %d %H:%M') }}</td>
2019-09-29 09:47:55 +01:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}