depicts/templates/list_edits.html

45 lines
1.3 KiB
HTML

{% from "macro.html" import render_pagination %}
{% extends "base.html" %}
{% block content %}
<div class="p-2">
<p>This tool has been used to add a total of {{ '{:,d}'.format(pager.total_count) }} depicts statements.</p>
<p>{{ '{:,d}'.format(user_count) }} users have tried this tool.</p>
<p>{{ '{:,d}'.format(item_count) }} artworks have been cataloged.</p>
{{ render_pagination(pager) }}
<table class="table">
<thead>
<tr>
<th>username</th>
<th>artwork</th>
<th>depicts</th>
<th>when</th>
</tr>
</thead>
<tbody>
{% for edit in edit_list %}
<tr>
<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>
</td>
<td><a href="https://www.wikidata.org/wiki/{{ edit.depicts_qid }}">{{ edit.depicts.label }}</a>
({{ edit.depicts_qid }})</td>
<td class="text-nowrap">{{ edit.timestamp.strftime('%Y %b %d %H:%M') }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{{ render_pagination(pager) }}
</div>
{% endblock %}