diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f43ca5..3cd695d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); version ## [Unreleased] +### Changed + +- The panel's **Account** entry is now called **Settings** — nav link, page + heading, and browser title. The route stays `/account`, so existing links + and bookmarks are unaffected. + ### Fixed - Release CI: retry `docker push` / `imagetools create` on transient GHCR diff --git a/docs/guide.md b/docs/guide.md index e95a720..94c9cd1 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -223,7 +223,7 @@ service healthy and will mail be accepted?" - **Backup** (`/backup`) — download a full-server backup; the same page hosts the domain-import form (`POST /domains/import`). See [Backup, restore, and moving a single domain](#backup-restore-and-moving-a-single-domain). -- **Account** (`/account`) — change the administrator username and/or password. +- **Settings** (`/account`) — change the administrator username and/or password. Application SASL logins are separate and are not changed here. **Sessions.** A login survives a container restart: sessions live in SQLite, not diff --git a/internal/web/handlers_account.go b/internal/web/handlers_account.go index 8533d34..9cbdf0a 100644 --- a/internal/web/handlers_account.go +++ b/internal/web/handlers_account.go @@ -30,7 +30,7 @@ func (s *Server) handleAccount(w http.ResponseWriter, r *http.Request) { // field after a rejected submission; the password fields are never repopulated. func (s *Server) renderAccount(w http.ResponseWriter, r *http.Request, status int, formErr, formUsername string) { s.render(w, status, "account", map[string]any{ - "Title": "SelfPost — account", + "Title": "SelfPost — settings", "User": currentUser(r), "Active": "account", "FormUsername": formUsername, diff --git a/internal/web/templates/account.html b/internal/web/templates/account.html index 2e598de..89a5162 100644 --- a/internal/web/templates/account.html +++ b/internal/web/templates/account.html @@ -1,5 +1,5 @@ {{define "content"}} -

Account

+

Settings

{{if .Flash}}
{{.Flash}}
{{end}} diff --git a/internal/web/templates/layout.html b/internal/web/templates/layout.html index 83676bf..2b8eca2 100644 --- a/internal/web/templates/layout.html +++ b/internal/web/templates/layout.html @@ -70,7 +70,7 @@ {{template "sections" .}}
{{.User}} - {{if eq .Active "account"}}{{template "icon-account"}}Account{{else}}{{template "icon-account"}}Account{{end}} + {{if eq .Active "account"}}{{template "icon-account"}}Settings{{else}}{{template "icon-account"}}Settings{{end}}