{automation.name || $i18n.t('Automation')} / {$WEBUI_NAME}
{$i18n.t('This will delete')} {automation.name}.
{$i18n.t('Status')} {is_active ? $i18n.t('Active') : $i18n.t('Paused')}
{$i18n.t('Schedule')} {formatSchedule(automation.data.rrule)}
{$i18n.t('Destination')} {getDestinationName()}
{$i18n.t('Model')} {automation.data.model_id}
{$i18n.t('Next run')} {formatNextRun(automation.next_runs?.[0] ?? automation.next_run_at)}
{$i18n.t('Last run')} {automation.last_run_at ? formatNextRun(automation.last_run_at) : $i18n.t('Never')}

{$i18n.t('Prompt')}
{automation.data.prompt}

{$i18n.t('Runs')}
{#if runsLoading && runs.length === 0}
{:else if runs.length === 0}
{$i18n.t('No runs yet')}
{:else}
{#each runs as run}
{formatTime(run.created_at)} {#if run.chat_id} {/if} {#if run.error} {run.error} {/if}
{/each} {#if runsLoading && runs.length > 0}
{/if}
{/if}