{% extends "base.html" %} {% load static %} {% block title %}Tasks{% endblock %} {% block body %}
{% if s_tasks %} {% for task in s_tasks %} {% endfor %}
# Scheduled Task Name Spider Name Server Address Last Run Next Run Times runned Action
{{ forloop.counter }} {{ task.name }} {{ task.spider }} {{ task.server.ip }}:{{ task.server.port }} {% if task.last_run %} {{ task.print_last_run }} {% endif %} {% if task.next_run %} {{ task.print_next_run }} {% endif %} {{ task.tasks.count }}
{% csrf_token %}
{% else %} There are no scheduled tasks. {% endif %}
{% if s_tasks %} {% endif %}
{% endblock %}