{report.name}
+ {report.builtIn && ( + + {t('schedRep.builtIn', 'Built in')} + + )} +{scheduleText(report.schedule, t, i18n.language)}
++ {report.builtIn + ? t('schedRep.toAdmins', 'To the system administrators') + : t('schedRep.to', 'To {{who}}', { + who: + report.recipients.slice(0, 3).join(', ') + + (report.recipients.length > 3 ? ` +${report.recipients.length - 3}` : ''), + })} + {report.attachCsv && ` · ${t('schedRep.withCsv', 'with CSV files')}`} +
+
+
-
+
- {t('schedRep.next', 'Next')} +
- {report.enabled ? when(report.nextRunAt) : t('schedRep.notScheduled', 'Off, so not scheduled')} +
- {t('schedRep.last', 'Last run')} +
- + {!last + ? t('schedRep.never', 'Not yet') + : last.status === 'sent' + ? t('schedRep.lastSent', '{{when}}, to {{count}}', { + when: when(last.at), + count: last.recipients, + }) + (last.byHand ? ` ${t('schedRep.byHand', '(sent by hand)')}` : '') + : t('schedRep.lastFailed', '{{when}}, failed: {{reason}}', { + when: when(last.at), + reason: last.reason ?? '', + })} + +