kept data: the choice at reinstall, the list, the read-only view, the load (09 decision 36); R-690 fixed
gates / gates (push) Successful in 26s
gates / gates (push) Successful in 26s
An install over an app's kept drive folder (appdata/<app> non-empty) asks the household: "use my kept data" (a load from the newest copy of THIS drive's install, own unit or second-drive mirror, then the template's after_load) or "start fresh" (the folder is renamed into <drive>/kept/<app>/<date>/ with the removed app's unit; nothing deleted). The install API answers 409 kept_data_choice until one is chosen; DeployStack refuses too. New page Megorzott adatok / Kept data (/kept-data): Load / Look / Delete (typed confirmation, the only deletion of kept data). FileBrowser gets a read-only source. The drive-full warning names the kept folders. <drive>/kept is protected and outside every backup leg. R-690: the removed-app restore (R-487) never found a unit on a DATA drive — it asked GetStackComposePath (true for every catalog app) and restored nextcloud with no env. Now isStackDeployed; pinned with a production-shaped provider. Red-proofs: audits/night-2026-09-26/E/redproofs/. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
{{define "kept_data"}}
|
||||
{{template "layout_start" .}}
|
||||
|
||||
<div class="page-header">
|
||||
<div class="kept-header">
|
||||
<a href="/storage" class="btn btn-sm btn-outline">{{T "kept.page.back"}}</a>
|
||||
<h2>{{T "kept.page.title"}}</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{if .KeptError}}<div class="alert alert-error">{{.KeptError}}</div>{{end}}
|
||||
{{if .KeptFlash}}<div class="alert alert-info">{{.KeptFlash}}</div>{{end}}
|
||||
|
||||
<div class="settings-card">
|
||||
<p class="settings-card-desc">{{T "kept.page.intro"}}</p>
|
||||
<p class="form-hint">{{T "kept.not_backed_up"}}</p>
|
||||
{{if .KeptRows}}
|
||||
<div class="kept-list">
|
||||
{{range .KeptRows}}
|
||||
<div class="kept-item" data-kept-path="{{.Path}}">
|
||||
<div class="kept-item-head">
|
||||
<span class="kept-item-name">{{.DisplayName}}</span>
|
||||
<span class="kept-item-meta mono">{{.Date}} · {{.Size}}</span>
|
||||
</div>
|
||||
<div class="kept-item-backup">{{T "kept.list.backup"}} {{.Backup}}</div>
|
||||
<div class="kept-item-actions">
|
||||
{{if .CanLoad}}
|
||||
<form method="POST" action="/kept-data/load" class="kept-inline-form">
|
||||
{{$.CSRFField}}
|
||||
<input type="hidden" name="path" value="{{.Path}}">
|
||||
<button type="submit" class="btn btn-sm btn-primary">{{T "kept.action.load"}}</button>
|
||||
</form>
|
||||
{{else if .Installed}}
|
||||
<span class="form-hint">{{T "kept.list.installed"}}</span>
|
||||
{{end}}
|
||||
<a href="{{.LookURL}}" target="_blank" rel="noopener" class="btn btn-sm btn-outline">{{T "kept.action.look"}}</a>
|
||||
</div>
|
||||
<details class="kept-delete">
|
||||
<summary class="btn btn-sm btn-outline">{{T "kept.action.delete"}}</summary>
|
||||
<form method="POST" action="/kept-data/delete" class="kept-delete-form">
|
||||
{{$.CSRFField}}
|
||||
<input type="hidden" name="path" value="{{.Path}}">
|
||||
<p class="kept-delete-text">{{.DeleteText}}</p>
|
||||
<label class="form-hint">{{.TypePrompt}}</label>
|
||||
<input type="text" name="confirm" autocomplete="off" required>
|
||||
<button type="submit" class="btn btn-sm btn-danger">{{T "kept.action.delete_final"}}</button>
|
||||
</form>
|
||||
</details>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{else}}
|
||||
<p class="form-hint">{{T "kept.list.empty"}}</p>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
{{template "layout_end" .}}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user