{% extends "space-settings-base.html" %} {% from "icons.html" import icon %} {% from "ui.html" import csrf_field with context %} {% set section = "routines" %} {% set base = "/o/" ~ org.slug ~ "/" ~ space.slug ~ "/-/routines" %} {% block section %}

{{ icon('chevron-left', 14) }}{{ routine.name if routine else _("All routines") }}

{# Day of the week or of the month: only the one for the chosen frequency is shown (CSS :has, no script); without :has, both stay visible and the other one is ignored. #}

{% if routine %}{{ _("Edit the routine") }}{% elif draft.template %}{{ _("New routine from a template") }}{% else %}{{ _("New routine") }}{% endif %}

{% if error %}{% endif %} {{ csrf_field() }} {% if not routine %}{% endif %}

{{ _("What the agent must do, and what its output must contain. It reads the wiki without being able to change it; what it reads cannot change these instructions.") }}

{{ _("Schedule") }}

{{ _("Local time of the space ({tz}), the same as the tidy-up.", tz=space.tidy_timezone) }}

{{ _("Scope") }}

{{ _("The agent only reads these folders: tree, pages, search and backlinks.") }}

{{ _("Outputs") }}

{{ _("The routine writes nowhere else. Fixes to the wiki go through the inbox, which the tidy-up handles with its safeguards.") }}

{{ _("Verified addresses only; anyone can unsubscribe in My account.") }}

{{ _("Cancel") }}
{% endblock %}