{# Shared pieces of the routine pages: schedule, outputs, status of the last run. #} {% from "ui.html" import when with context %} {# "Every Monday at 06:00", in the space's time zone. #} {% macro schedule(r, weekdays) -%} {%- if r.frequency == 'daily' -%}{{ _("Every day at {time}", time=r.at) }} {%- elif r.frequency == 'weekly' -%}{{ _("Every {day} at {time}", day=_(weekdays[r.weekday or 0]), time=r.at) }} {%- else -%}{{ _("On day {n} of every month at {time}", n=r.monthday, time=r.at) }}{%- endif -%} {%- endmacro %} {# Chosen outputs, as pills. #} {% macro outputs(r, wiki="") -%}
{{ r.output_page }}{% else %}{{ r.output_page }}{% endif %}