{{define "backups_remote"}} {{template "layout_start" .}} {{template "backups_flash" .}} {{if .RecoveryOffer}}
{{T "backups_remote.a_korabbi_hazon_kivuli_menteseid"}}
{{T "backups_remote.adatok_visszaszerzese"}}
{{end}} {{if not .Backup}} {{template "backups_empty" .}} {{else}} {{if and (not .OffboxConfigured) .OffsiteHubEnabled}}
{{T "backups_remote.felhom_offsite_tarhely_kiepitve_a"}}
{{else if not .OffboxConfigured}}
{{T "backups_remote.felhom_offsite_tarhely_igenyelheto_szolg"}}
{{else if eq .OffboxToggledCount 0}}
{{T "backups_remote.aktiv_nincs_kijelolt_alkalmazas"}}
{{end}}

{{T "backups_remote.tavoli_mentes_3_mentes_titkositott"}}

{{T "backups_remote.az_alkalmazas_mentesek_titkositott_masol"}}

{{if .Offbox}}
{{if eq .Offbox.LastStatus "ok"}}{{T "backups_remote.rendben"}}{{else if eq .Offbox.LastStatus "incomplete"}}{{T "backups_remote.hianyos"}}{{else if eq .Offbox.LastStatus "error"}}{{T "backups_remote.hiba"}}{{else if eq .Offbox.LastStatus "running"}}{{T "backups_remote.fut"}}{{else}}–{{end}}
{{T "backups_remote.utolso_tavoli_mentes"}}{{if .Offbox.LastRun}}
{{timeAgoStr .Offbox.LastRun}}{{end}}
{{if and .Offbox.StatsKnown .Offbox.RepoSizeHuman}}{{.Offbox.RepoSizeHuman}}{{else}}–{{end}}
{{T "backups_remote.tarolo_meret"}} {{if .Offbox.StatsKnown}}{{T "backups_remote.pillanatkep"}}{{else}}{{T "backups_remote.a_pillanatkepek_szama_meg_ismeretlen"}}{{end}}
{{if .Offbox.Enabled}}{{.Offbox.User}}@{{.Offbox.Host}}{{else}}{{T "backups_remote.kikapcsolva"}}{{end}}
{{if .Offbox.Enabled}}{{.Offbox.RepoPath}}{{else}}{{T "backups_remote.a_tavoli_mentes_ki_van"}}{{end}}
{{if and .Offbox.Enabled (gt .Offbox.QuotaGB 0)}}
{{T "backups_remote.tarhelykeret"}} {{if .Offbox.StatsKnown}}{{if .Offbox.RepoSizeHuman}}{{.Offbox.RepoSizeHuman}}{{else}}0{{end}} / {{.Offbox.QuotaGB}} GB ({{.OffboxQuotaPct}}%){{else}}{{T "backups_remote.meg_nem_tudjuk_mennyi_van"}}{{end}}
{{if .Offbox.StatsKnown}}
{{end}}
{{end}} {{/* R-228 — THE SET-ASIDE HISTORY IS SAID OUT LOUD. The customer chose "I do not want the old data", was told it would be KEPT and not deleted, and then it vanished from every screen: the box recorded exactly where it went (OrphanedRenamedTo) and showed that to nobody. Measured 2026-08-05 (CAMPAIGN-11 F7) — 12 535 KB at a path with zero references in any template or handler. NOTE — IT STATES TWO FACTS AND STOPS. It does NOT promise the history can be reopened, because it cannot be: serving a superseded package is an unbuilt link (R-199's inventory). A conditional promise that turns out false is worse here than saying less — the R-202 lesson. */}} {{if .Offbox.OrphanedRenamedTo}}

{{T "backups_remote.a_korabbi_menteseid_felre_vannak"}}

{{T "backups_remote.amikor_uj_mentesi_kulcsot_kapott"}}

{{end}} {{if .Offbox.LastError}}

{{T "backups_remote.utolso_hiba"}}

{{end}} {{/* Part E: display pick — a stale zero-toggle warning is replaced once the selection changed (neutral color: the replacement is reassurance, not a deviation). */}} {{if .OffboxWarningDisplay}}

{{.OffboxWarningDisplay}}

{{end}} {{/* v0.142.0 offsite-repo continuity: the ORPHANED card replaces the raw restic error banner. The remote holds backups written under a previous, no-longer-available key (reinstall shape). A reset moves the old history aside (never deletes) and starts a fresh repo under the current key. */}} {{if eq .Offbox.RepoState "orphaned"}}

{{T "backups_remote.a_tavoli_tarolo_masik_kulccsal"}}

{{/* R-299: this paragraph carried the SAME unevaluable promise as the confirm block below, in a different conjugation („visszaállíthatók lehetnek" vs „visszaállítható lehet") — which is also why the first regression guard, matching the singular form, did not catch it. The discriminator is superseded identity_blob on the HUB; the box has no wire field for it. The two accurate halves are kept: the store IS orphaned, and new backups genuinely cannot be written. The guard now matches the STEM, so any inflection fails the test. */}}

{{T "backups_remote.a_tavoli_tarhelyen_levo_mentesek"}}

{{end}} {{/* Escrow ceremony card (v0.127.0): the customer-driveable wizard replaced the manual-confirm button (that deprecated endpoint stays for legacy blobs; its button is gone). States: awaiting (v0.138.0: ceremony done, hub confirm pending) → info; awaiting timed out → warn + re-ceremony CTA; pending → CTA; escrowed+stale → warning + re-ceremony CTA; escrowed clean → secondary link; agent too old → the honest version note, no CTA. */}} {{if .OffboxCeremonyAwaiting}} {{/* v0.138.0: the report-cycle gap between a completed ceremony and the hub-verified flip. Info (blue) accent — NOT a warning: nothing is wrong, the confirmation is simply in flight. */}}

{{T "backups_remote.helyreallitasi_kod_letrehozva"}}

{{T "backups_remote.a_helyreallitasi_csomag_elkuldve_a"}}

{{else if .OffboxCeremonyTimedOut}} {{/* v0.138.0: the confirmation never arrived within two report cycles + slack — degrade to a warning with the re-ceremony CTA, never an indefinite "waiting". */}}

{{T "backups_remote.a_megerosites_nem_erkezett_meg"}}

{{if .EscrowAgentOK}} {{T "backups_remote.uj_helyreallitasi_kod_keszitese"}} {{else}}

{{T "backups_remote.a_funkciohoz_az_ugynok_frissitese"}}

{{end}}
{{else if and .OffboxConfigured (ne .Offbox.EscrowState "escrowed")}}

{{T "backups_remote.helyreallitasi_kod_szukseges"}}

{{T "backups_remote.a_tavoli_mentesek_csak_akkor"}}

{{/* §7.3 / Q7 — THE TRAP THAT MUST NOT SURVIVE THIS SESSION. While a recovery is outstanding, creating a NEW code seals the CURRENT key and demotes the package that opens the earlier history to retained custody, which no shipped path can read (R-199). It also re-enables the recovery screen through the orphan route while invalidating the code that screen accepts. The button is therefore made UNAVAILABLE here rather than merely captioned: a warning beside a button is a warning people click past. */}} {{if .RecoveryOffer}}

{{T "backups_remote.ehhez_a_gephez_egy_korabbi"}}

{{else if .EscrowAgentOK}} {{T "backups_remote.helyreallitasi_kod_letrehozasa"}} {{else}}

{{T "backups_remote.a_funkciohoz_az_ugynok_frissitese"}}

{{end}}
{{else if and .OffboxConfigured .EscrowStale}}

{{T "backups_remote.a_letetben_levo_helyreallitasi_csomag"}}

{{if .EscrowAgentOK}} {{T "backups_remote.uj_helyreallitasi_kod_keszitese"}} {{else}}

{{T "backups_remote.a_funkciohoz_az_ugynok_frissitese"}}

{{end}}
{{else if .OffboxConfigured}} {{/* v0.127.1: the re-ceremony CTA is a real secondary button (outline, NOT primary — escrowed is a healthy state; available-not-urgent, unlike the stale variant above). */}}

{{T "backups_remote.a_helyreallitasi_kod_letetbe_helyezve"}}

{{if .EscrowAgentOK}}{{T "backups_remote.uj_helyreallitasi_kod_keszitese"}}{{end}}
{{end}} {{if .AbandonActive}} {{/* R-241: the countdown, stated for the whole window on the page the choice was made from. */}}

{{T "backups_remote.a_korabbi_mentesek_torlese_folyamatban"}}

{{/* R-302: the FOURTH instance of the retrieval promise, under a different verb than the banner's — which is why no earlier guard counted it. Same condition, same single derivation: fixing the strip above and not this would leave one page contradicting the other. The deletion and its date are certain and always render. */}} {{T "backups_remote.a_keresed_szerint_a_korabbi"}} {{if .AbandonRetrievalOffered}}{{T "backups_remote.addig_meggondolhatod_magad_ha_megvan"}}{{else}}{{T "backups_remote.hogy_ezek_meg_visszaszerezhetok_e"}}{{end}}

{{T "backups_remote.megis_visszaszerzem_a_koddal"}}
{{else if .AbandonPurging}}

{{T "backups_remote.a_korabbi_tavoli_menteseid_torlese"}}

{{end}} {{if .OffboxConfigured}}
{{.CSRFField}}

{{T "backups_remote.mely_alkalmazasok_mentodnek_a_tavoli"}}

{{if and .OffboxApps (eq .Offbox.EscrowState "escrowed") (eq .OffboxToggledCount 0)}}

{{T "backups_remote.nincs_tavoli_mentesre_jelolt_alkalmazas"}}

{{end}} {{if .OffboxApps}}
{{range .OffboxApps}} {{template "app_list_row" dict "Slug" .Slug "Name" .DisplayName}}
{{$.CSRFField}}
{{if $.OffboxBlockedSet}}{{if index $.OffboxBlockedSet .Name}} {{T "backups_remote.a_teljes_mentes_tullepne_a"}} {{end}}{{end}} {{template "app_list_row_end"}} {{end}}
{{else}}

{{T "backups_remote.nincs_telepitett_alkalmazas"}}

{{end}} {{end}} {{else}} {{if .OffsiteHubEnabled}}

{{T "backups_remote.felhom_offsite_tarhely_kiepitve_a"}}

{{else}}

{{T "backups_remote.meg_nincs_beallitva_tavoli_mentesi"}}

{{end}} {{end}}
{{T "backups_remote.tavoli_mentesi_cel_beallitasa"}}
{{.CSRFField}}
{{T "backups_remote.a_kulcsot_0600_as_fajlba"}}
{{T "backups_remote.a_host_kulcs_rogzitese_no"}} ssh-keyscan -p <port> <host>
{{end}} {{template "layout_end" .}} {{end}}