ttvdrops/templates/twitch/dataset_backups.html
2026-02-11 03:14:04 +01:00

39 lines
1.4 KiB
HTML

{% extends "base.html" %}
{% block title %}
Dataset
{% endblock title %}
{% block content %}
<main>
<h1>Dataset Backups</h1>
{% if datasets %}
<table>
<thead>
<tr>
<th>Name</th>
<th>Size</th>
<th>Updated</th>
</tr>
</thead>
<tbody>
{% for dataset in datasets %}
<tr">
<td>
<a href="{% url 'twitch:dataset_backup_download' dataset.download_path %}">{{ dataset.name }}</a>
</td>
<td>{{ dataset.size }}</td>
<td>
<time datetime="{{ dataset.updated_at|date:'c' }}"
title="{{ dataset.updated_at|date:'DATETIME_FORMAT' }}">
{{ dataset.updated_at|timesince }} ago ({{ dataset.updated_at|date:'M d, Y H:i' }})
</time>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<p>Found {{ dataset_count }} datasets.</p>
{% else %}
<p>No dataset backups found.</p>
{% endif %}
</main>
{% endblock content %}