Error: {error}
{/if}
{#if activeTab === 'files'}
{/if}
{#if activeTab === 'history'}
{/if}
{#if activeTab === 'tags'}
{/if}
{#if activeTab === 'issues'}
{/if}
{#if activeTab === 'prs'}
{/if}
{#if activeTab === 'files' && readmeContent && !currentFile}
{#if loadingReadme}
{/if}
{/if}
{#if activeTab === 'files' && currentFile}
{/if}
{#if activeTab === 'history' && showDiff}
{#each diffData as diff}
{/each}
{:else if activeTab === 'history'}
{/if}
{#if activeTab === 'tags'}
{/if}
{#if activeTab === 'issues'}
README
Loading README...
{:else if readmeIsMarkdown && readmeHtml}
{@html readmeHtml}
{:else if readmeContent}
{readmeContent}
{currentFile}
{#if loading}
{#if hasChanges}
● Unsaved changes
{/if}
{#if isMaintainer}
{:else if userPubkey}
Only maintainers can edit files. Submit a PR instead.
{/if}
Loading file...
{:else}
{#if isMaintainer}
{:else}
{/if}
{:else if activeTab === 'files'}
{#if highlightedFileContent}
{@html highlightedFileContent}
{:else}
{/if}
{fileContent}
{/if}
Select a file from the sidebar to view and edit it
Diff for commit {selectedCommit?.slice(0, 7)}
{diff.file}
+{diff.additions}
-{diff.deletions}
{diff.diff}
Select a commit to view its diff
Tags are displayed in the sidebar
{#if issues.length === 0}
{:else}
{#each issues as issue}
{/each}
{/if}
{/if}
{#if activeTab === 'prs'}
No issues found. Create one to get started!
{issue.subject}
{@html issue.content.replace(/\n/g, '
')}
')}
{#if prs.length === 0}
{:else if selectedPR}
{#each prs.filter(p => p.id === selectedPR) as pr}
{@const decoded = nip19.decode(npub)}
{#if decoded.type === 'npub'}
{@const repoOwnerPubkey = decoded.data as string}
{/if}
{/each}
{:else}
{#each prs as pr}
{/if}
No pull requests found. Create one to get started!
selectedPR = pr.id}
onkeydown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
selectedPR = pr.id;
}
}}
style="cursor: pointer;">
{/each}
{/if}
{pr.subject}
{@html pr.content.replace(/\n/g, '
')}
')}