{isGerman ? "Änderungen vergleichen" : "Compare changes"}
{fromLabel || comparison.from_short}
{toLabel || comparison.to_short}
{#if restoreLabel && onRestore}
{restoreLabel}
{/if}
{#if comparison.files.length === 0}
{isGerman ? "Keine Unterschiede - diese Versionen sind identisch." : "No differences - these versions are identical."}
{:else}
{#if !selectedFile}
{isGerman ? "Wähle eine Datei aus, um ihre Änderungen zu sehen." : "Select a file to see its changes."}
{:else if splitRows.length === 0}
{isGerman ? "Keine textuellen Änderungen für diese Datei." : "No textual changes for this file."}
{:else}
{displayDiffFile(selectedFile)}
+{selectedFile.additions}
-{selectedFile.deletions}
{isGerman ? "Vorher" : "Before"}
{fromLabel || comparison.from_short}
{isGerman ? "Nachher" : "After"}
{toLabel || comparison.to_short}
syncSplitScroll("before")} >
{#each splitRows as row, i (`left-${i}`)} {#if row.type === "span"}
{row.text}
{:else}
{row.leftNum ?? ""}
{row.leftText ?? " "}
{/if} {/each}
syncSplitScroll("after")} >
{#each splitRows as row, i (`right-${i}`)} {#if row.type === "span"}
{row.text}
{:else}
{row.rightNum ?? ""}
{row.rightText ?? " "}
{/if} {/each}
{#each diffMarkers as marker, index (`${marker.start}-${marker.end}-${marker.kind}`)}
scrollToDiffMarker(marker.start)} title={`Jump to change ${index + 1} of ${diffMarkers.length}`} aria-label={`Jump to change ${index + 1} of ${diffMarkers.length}`} >
{/each}
{/if}
{/if}