{host ? `History of ${host}` : "History"}

{#if host}
{/if} {#if problem}{#snippet title()}{problem}{/snippet}{/if}
{#if loaded && entries.length === 0}

No changes yet

Every change you apply is listed here, newest first.

{/if} {#if next}{/if}
{#if chosen && preview}

Version of {when(entry?.at, app.now)}

{#if preview.blocked?.code === "restore.not_kept"}

This change did not stay

{#if attempt?.reason}

{attempt.reason.message}

{/if}

This change was undone at the time, so there is nothing to go back to.

{#if attempt?.attempted_host}
{/if} {:else if preview.blocked?.code === "restore.same"}

Go back to this version?

This version is the same as the current one. Nothing to restore.

{:else}

Go back to this version?

{n === 1 ? "Restoring puts 1 host back to how it was then:" : `Restoring puts ${n} hosts back to how they were then:`}

Applied as a new commit with the same {app.overview?.site?.watch_seconds ?? 60}-second watch. If health checks fail, it is undone.

{#if blocked}

{blocked}

{/if}
{/if}
{/if}
{#if resume} { resume = null; void load(); }} /> {/if} {#if editFrom} { editFrom = null; void load(); }} /> {/if}