{{ define "content" }}

{{ .locale.Tr "admin.admin_panel" }}

{{ .locale.Tr "admin.actions.subtitle" }}

{{/* The list re-fetches itself while any action is running (and briefly after a manual trigger via pollNow), then stops polling once idle. */}}
    {{ range .actions }}
  • {{ $.locale.Tr .LabelKey }}

    {{ if .Periodic }}

    {{ .Spec }}

    {{ end }}
    {{ if .Running }} {{ $.locale.Tr "admin.actions.running" }} {{ end }} {{/* Plain POST → the handler adds a flash and redirects back here with ?run=1. hx-boost (on ) turns this into a boosted navigation that re-renders the whole page, so the flash shows and polling picks up any still-running action. */}}
    {{ $.csrfHtml }}
  • {{ end }}
{{ end }}