{#if repo}
{#if !repo.detectionState || repo.detectionState === 'idle'} {#if mode === 'promotion'}
{/if}
{:else if repo.detectionState === 'loading'}
Checking repository...
{:else if repo.detectionState === 'no-wmill'} No git sync configuration found. Configure your sync settings below.
{:else if repo.detectionState === 'has-wmill'} Found existing git sync configuration. Settings loaded from repository.
{:else if repo.detectionState === 'error'} {repo.detectionError || 'Failed to check repository'} {/if} {#if repo.detectionJobId && (repo.detectionState === 'loading' || repo.detectionState === 'error')}
{#if repo.detectionJobStatus === 'running'} {:else if repo.detectionJobStatus === 'success'} {:else if repo.detectionJobStatus === 'failure'} {/if} Detection job: {repo.detectionJobId}
{/if}
{/if}