From 99bdadf24831343a37ec289d9db044108f628c73 Mon Sep 17 00:00:00 2001 From: Thayol Date: Sun, 13 Sep 2026 11:32:33 +0200 Subject: [PATCH] Rename my files --- internal/server/admin.go | 4 ++-- web/templates/files.html | 2 +- web/templates/layout.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/server/admin.go b/internal/server/admin.go index 9e71ca1..d316826 100644 --- a/internal/server/admin.go +++ b/internal/server/admin.go @@ -144,9 +144,9 @@ func (s *Server) handleFiles(w http.ResponseWriter, r *http.Request) { } slices.SortStableFunc(objects, adminSorts[sortBy]) - title := "Your files" + title := "My files" if lim.Admin { - title = "All files" + title = "Administration" } // s.page resolves the session cookie, which is the right thing for the // header but not for this body: the page has to describe the credential it diff --git a/web/templates/files.html b/web/templates/files.html index 6bee912..9c35dff 100644 --- a/web/templates/files.html +++ b/web/templates/files.html @@ -17,7 +17,7 @@ {{else}}
-

{{if .Admin}}All files{{else}}Your files{{end}}

+

{{if .Admin}}Administration{{else}}My files{{end}}

Files
{{.Count}}{{if .Anonymous}} ({{.Anonymous}} anonymous){{end}}
{{if .Admin}} diff --git a/web/templates/layout.html b/web/templates/layout.html index 57d3bac..acc4520 100644 --- a/web/templates/layout.html +++ b/web/templates/layout.html @@ -12,7 +12,7 @@ Uncensored Send