{#snippet headerActions()} {#if !isLegacy} {#if validation?.hasChanges && validation?.isValid && !repo.isUnsavedConnection} {#if idx !== null && gitSyncContext.initialRepositories[idx] && !repo.legacyImported} {/if} {/if} {/if} {#if isCollapsible} {/if} {#if !confirmingDelete}
{:else}
{/if} {/snippet} {#snippet repositoryContent()}
Resource:
{#if !emptyString(repo.git_repo_resource_path)} {/if}
{#if !emptyString(repo.git_repo_resource_path)} {#if validation?.isDuplicate}
This resource is already used by another repository.
{/if} {#if gitSyncTestJob && gitSyncTestJob.status !== undefined}
{#if gitSyncTestJob.status === 'running'} {:else if gitSyncTestJob.status === 'success'} {:else} {/if} Git sync resource checked via Windmill job {gitSyncTestJob.jobId} WARNING: Only read permissions are verified.
{#if gitSyncTestJob.status === 'failure' && gitSyncTestJob.error}
Error: {gitSyncTestJob.error}
{/if} {/if} {#if repo.legacyImported} This repository was initialized from workspace-level legacy Git-Sync settings. Review the filters and press Save to migrate. {/if} {#if repo.script_path != hubPaths.gitSync} The git sync version for this repository is not latest. Current: {repo.script_path}, latest: {hubPaths.gitSync}
{/if} {#if repo.isUnsavedConnection && !emptyString(repo.git_repo_resource_path) && idx !== null} {:else} {#snippet actions()} {/snippet} {#if !repo.isUnsavedConnection}
{#if !emptyString(repo.git_repo_resource_path) && !repo.legacyImported}
Manual workspace content sync
{/if}
{/if} {/if} {:else}
Please select a Git repository resource.
{/if}
{/snippet} {#if shouldShowEmptyState}

{displayTitle}

{#if displayDescription}

{displayDescription}

{/if}

{#if mode === 'sync'} No sync repository configured. Add one to enable direct synchronization. {:else if mode === 'promotion'} No promotion repository configured. Add one to enable branch-based workflows. {:else} No repository configured. {/if}

{#if onAdd} {/if}
{:else if repo} {#if variant === 'primary-sync' || variant === 'primary-promotion'}

{displayTitle}

{#if displayDescription}

{displayDescription}

{/if}
{@render headerActions()}
{@render repositoryContent()}
{:else}
{displayTitle} {#if repo.legacyImported} Legacy Configuration {/if} {repo.git_repo_resource_path}
{@render headerActions()}
{#if !repo.collapsed}
{@render repositoryContent()}
{/if}
{/if} {/if}