depicts/templates/list_edits.html

35 lines
870 B
HTML
Raw Normal View History

2019-09-29 09:47:55 +01:00
{% extends "base.html" %}
{% block content %}
<div class="p-2">
<p>This tool has been used to save {{ edits.count() }} edits.</p>
<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>
<td><a href="{{ edit.user_page_url }}">{{ 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>
<td>{{ edit.timestamp.strftime('%H:%M %a, %d %b %Y') }}</td>
2019-09-29 09:47:55 +01:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}