{#snippet leftPane()} {#if isMaintainer && onCreateFile}
{/if} {/snippet} {#snippet rightPanel()} {#if currentFile}
{currentFile}
{#if branches.length > 0 && isMaintainer} {:else if currentBranch && isMaintainer} {currentBranch} {/if} {#if hasChanges} ● Unsaved changes {/if} {#if currentFile && supportsPreview((currentFile.split('.').pop() || '').toLowerCase())} {/if} {#if currentFile && fileContent} {/if} {#if isMaintainer} {:else if userPubkey} Only maintainers can edit files. Submit a PR instead. {/if}
{#if loading}
Loading file...
{:else}
{#if isMaintainer} {#if currentFile && showFilePreview && supportsPreview((currentFile.split('.').pop() || '').toLowerCase())}
{#if generatingPreview}
Updating preview...
{:else if livePreviewHtml}
{:else if fileHtml}
{/if}
{:else if fileContent && !isImageFile} { editedContent = value; hasChanges = value !== fileContent; onContentChange(value); }} /> {/if} {:else}
{#if isImageFile && imageUrl}
{currentFile?.split('/').pop()
{:else if currentFile && showFilePreview && supportsPreview((currentFile.split('.').pop() || '').toLowerCase())} {#if livePreviewHtml}
{:else if fileHtml}
{/if} {:else if fileContent}
{#if highlightedFileContent && highlightedFileContent.trim() !== ''} {@html highlightedFileContent} {:else}
{fileContent}
{/if}
{/if}
{/if}
{/if} {#if hasChanges && isMaintainer} {/if}
{:else if files.length === 0}

This repo is empty and contains no files.

{:else}

Select a file from the left to view it on the right

{/if} {/snippet}