diff --git a/tubesync/sync/templates/sync/tasks-completed.html b/tubesync/sync/templates/sync/tasks-completed.html index 52f576df..ec2a0aa8 100644 --- a/tubesync/sync/templates/sync/tasks-completed.html +++ b/tubesync/sync/templates/sync/tasks-completed.html @@ -1,4 +1,4 @@ -{% extends 'base.html' %} +{% extends 'base.html' %}{% load filters %} {% block headtitle %}Tasks - Completed{% endblock %} @@ -14,20 +14,18 @@
{% for task in tasks %} - {% if task.has_error %} + {% if task.has_error %} {{ task.verbose_name }}
Queue: "{{ task.queue }}"
Error: "{{ task.error_message }}"
- Task ran at {{ task.run_at|date:'Y-m-d H:i:s' }} -
{% else %} - {{ task.verbose_name }}
Queue: "{{ task.queue }}"
- Task ran at {{ task.run_at|date:'Y-m-d H:i:s' }} -
{% endif %} + Task locked for: {{ task.run_at|sub:task.locked_at|timedelta }}
+ Task locked at {{ task.locked_at|date:'Y-m-d H:i:s' }}
+ Task ended at {{ task.run_at|date:'Y-m-d H:i:s' }} {% empty %} There have been no completed tasks{% if source %} that match the specified source filter{% endif %}.