Update tasks.html
This commit is contained in:
1 parent
7b196fa34c
commit
064b089266
1 file changed
+8
-7
@@ -54,8 +54,8 @@
|
|||||||
<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>
|
||||||
</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>
|
<i class="fas fa-history"></i> Task will be retried at <strong>{{ task.end_at|date:'Y-m-d H:i:s' }}</strong>
|
||||||
<a href="{% url 'sync:run-task' pk=task.pk %}" class="error-text">
|
<a href="{% url 'sync:run-task' pk=task.task_id %}" class="error-text">
|
||||||
<i class="fas fa-undo"></i>
|
<i class="fas fa-undo"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -80,12 +80,13 @@
|
|||||||
<div class="collection-item">
|
<div class="collection-item">
|
||||||
<a href="{% url task.url pk=task.instance.pk %}">
|
<a href="{% url task.url pk=task.instance.pk %}">
|
||||||
<i class="fas fa-hourglass-start"></i> <strong>{{ task }}</strong><br>
|
<i class="fas fa-hourglass-start"></i> <strong>{{ task }}</strong><br>
|
||||||
{% if task.instance.index_schedule and task.repeat > 0 %}Scheduled to run {{ task.instance.get_index_schedule_display|lower }}.<br>{% endif %}
|
{% if task.instance.is_active and 'once' not in task.verbose_name %}Scheduled to run {{ task.instance.get_index_schedule_display|lower }}.<br>{% endif %}
|
||||||
<i class="far fa-clock"></i> Task will run {% if task.run_now %}<strong>immediately</strong>{% else %}at <strong>{{ task.run_at|date:'Y-m-d H:i:s' }}</strong>
|
<i class="far fa-clock"></i> Task will run {% if task.run_now %}<strong>immediately</strong>{% else %}at <strong>{{ task.end_at|date:'Y-m-d H:i:s' }}</strong>
|
||||||
|
{% if '-' not in task.task_id %}
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url 'sync:run-task' pk=task.pk %}">
|
<a href="{% url 'sync:run-task' pk=task.task_id %}">
|
||||||
<i class="far fa-play-circle"></i>
|
<i class="far fa-play-circle"></i>
|
||||||
{% endif %}
|
{% endif %}{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
@@ -94,7 +95,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include 'pagination.html' with pagination=sources.paginator filter=source.pk %}
|
{% include 'pagination.html' with filter=source.pk %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col s12">
|
<div class="col s12">
|
||||||
<h2>Completed</h2>
|
<h2>Completed</h2>
|
||||||
|
|||||||
Reference in new issue
Block a user