{#if loading}
{:else if items.length === 0}

No containers or stacks found on this environment.

{:else} {#if unconfiguredCount > 0} {#if !showBatch}
{:else}
batchDestId = v ? parseInt(v) : 0}> {#if batchDestId} {@const dest = destList.find(d => d.id === batchDestId)} {#if dest} {@const DIcon = getRepoTypeIcon(dest.repository)} {dest.name} {/if} {:else}Select repository{/if} {#each usableDestinations as dest} {@const DIcon = getRepoTypeIcon(dest.repository)} {dest.name} {/each} batchSchedule = v} />
{/if} {/if}
{#each items as item} {@const itemConfigs = getItemConfigs(item.name)} {@const hasBackup = itemConfigs.length > 0} {@const isExpanded = expandedItem === item.name}
toggleExpand(item.name)} > {#if item.external} {:else if isExpanded} {:else} {/if} {#if item.type === 'stack'} {:else} {/if} {item.name} {#if item.git} git {/if} {#if item.external} external {/if} {#if item.external} adopt first {:else if hasBackup} {#if itemConfigs.length === 1} {@const cfg = itemConfigs[0]} {@const dest = destinations.get(cfg.destinationId)} {#if dest} {@const DestIcon = getRepoTypeIcon(dest.repository)} {dest.name} {/if} {cfg.schedule ? formatCron(cfg.schedule) : 'manual'} {:else} {itemConfigs.length} schedules {/if} {:else} configure {/if} {#if isExpanded && !item.external}
{/if}
{/each}
{/if}