depicts/templates/list_edits.html

39 lines
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>{{ painting_count }} paintings have been cataloged.</p>
2019-09-29 09:47:55 +01:00
<table class="table w-auto">
<thead>
<tr>
<th>username</th>
<th>painting</th>
<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>
2019-09-29 11:14:05 +01:00
<td><a href="https://www.wikidata.org/wiki/{{ edit.painting_qid }}">{{ edit.painting.label }}</a>
({{ edit.painting_qid }})</td>
<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 %}