mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 05:56:37 +00:00
Allow running tasks with errors also
This commit is contained in:
parent
90253ecab6
commit
dc3e320c11
@ -43,11 +43,16 @@
|
|||||||
</p>
|
</p>
|
||||||
<div class="collection">
|
<div class="collection">
|
||||||
{% for task in errors %}
|
{% for task in errors %}
|
||||||
<a href="{% url task.url pk=task.instance.pk %}" class="collection-item error-text">
|
<div class="collection-item error-text">
|
||||||
|
<a href="{% url task.url pk=task.instance.pk %}" class="error-text">
|
||||||
<i class="fas fa-exclamation-triangle"></i> <strong>{{ task }}</strong>, attempted {{ task.attempts }} time{{ task.attempts|pluralize }}<br>
|
<i class="fas fa-exclamation-triangle"></i> <strong>{{ task }}</strong>, attempted {{ task.attempts }} time{{ task.attempts|pluralize }}<br>
|
||||||
Error: "{{ task.error_message }}"<br>
|
Error: "{{ task.error_message }}"<br>
|
||||||
<i class="fas fa-history"></i> Task will be retried at <strong>{{ task.run_at|date:'Y-m-d H:i:s' }}</strong>
|
|
||||||
</a>
|
</a>
|
||||||
|
<i class="fas fa-history"></i> Task will be retried at <strong>{{ task.run_at|date:'Y-m-d H:i:s' }}</strong>
|
||||||
|
<a href="{% url 'sync:run-task' pk=task.pk %}" class="error-text">
|
||||||
|
<i class="fas fa-undo"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<span class="collection-item no-items"><i class="fas fa-info-circle"></i> There are no tasks with errors on this page.</span>
|
<span class="collection-item no-items"><i class="fas fa-info-circle"></i> There are no tasks with errors on this page.</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user