{% load i18n %}
{% if task_list %} {% trans "Periodic Snapshot Schedule" %}: {{ task_list|length }} {% else %} {% trans "There are no scheduled snapshots." %} {% endif %}
{% for p in task_list %} {% empty %} {% endfor %}
{% trans "Mount Point" %} {% trans "Recursive" %} {% trans "How" %} {% trans "Keep snapshot for" %} {% trans "Available actions" %}
{{ p.task_mountpoint.mp_path }} {% if p.task_recursive %} {% trans "Yes" %} {% else %} {% trans "No" %} {% endif %} {% trans "From" %} {{ p.task_begin }} {% trans "through" %} {{ p.task_end }} {% trans ", every" %} {{ p.get_task_interval_display }} {% if p.task_repeat_unit == "daily" %} {% trans "everyday" %} {% else %} {% if p.task_repeat_unit == "weekly" %} {% trans "on every" %}
    {% for day in p.task_byweekday %} {% if day == "1" %}
  • {% trans "Monday" %}
  • {% endif %} {% if day == "2" %}
  • {% trans "Tuesday" %}
  • {% endif %} {% if day == "3" %}
  • {% trans "Wednesday" %}
  • {% endif %} {% if day == "4" %}
  • {% trans "Thursday" %}
  • {% endif %} {% if day == "5" %}
  • {% trans "Friday" %}
  • {% endif %} {% if day == "6" %}
  • {% trans "Saturday" %}
  • {% endif %} {% if day == "7" %}
  • {% trans "Sunday" %}
  • {% endif %} {% endfor %}
{% endif %} {% endif %}
{{ p.task_ret_count }} {{ p.task_ret_unit }}
{% trans "There are no periodic snapshots scheduled." %}